Commit 03e6686f authored by Daniel STAN's avatar Daniel STAN

avoid run from ssh for control

parent 13be7de0
......@@ -4,4 +4,9 @@ if [ "$(hostname)" != "kugel" ]; then
echo "Run only on kugel";
exit 1
fi
if [ "$SSH_CONNECTION" != "" ]; then
echo "Run from ssh connection, won't do"
exit 2
fi
echo "Control: $1" | socat UNIX-CONNECT:/var/run/user/$(id -u)/remote -
#!/bin/bash
export PATH=/home/dstan/scripts-perso/bin:/usr/local/bin:/usr/bin:/bin
URI=spotify:album:0PTVq4kaAAuROnfvfA7bHG
control o2
sleep 5m
control o3
control openuri:spotify:user:spotify_france:playlist:2sxfgEZ1yRhGo0mF3v8YSM
control openuri:$URI
sleep 15m
control o1
sleep 15m
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment