workingOn action
[Sak.git] / s4kwarner.sh
blobbb2d1ac685df43c9bbdee969a7bc2d292eb46645
1 #!/bin/bash
3 export DISPLAY=:0
5 while((1)); do
7 xhost +
8 /usr/bin/pgrep X > /dev/null
9 if [ $? == 0 ] ; then
10 /usr/bin/pgrep sak > /dev/null
11 if [ $? == 1 ]; then
12 /usr/bin/xmessage -buttons ok,run:17 -c "SAK not running!";
13 if [ $? == 17 ]; then
14 /usr/bin/xmessage -c "STARTING SAK!!!";
15 start-stop-daemon --start /root/progetti/Sak/sak.sh
20 sleep 10;
22 done;