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
if [ "$SSH_CONNECTION" != "" ]; then
echo "Run from ssh connection, won't do"
exit 2
echo "Control: $1" | socat UNIX-CONNECT:/var/run/user/$(id -u)/remote -
export PATH=/home/dstan/scripts-perso/bin:/usr/local/bin:/usr/bin:/bin
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