Created
December 12, 2013 21:15
-
-
Save bhcopeland/7935584 to your computer and use it in GitHub Desktop.
is whatpulse running - crontab script to start whatpulse when it dies
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin | |
export DISPLAY=:0.0 | |
export DISPLAY=:0 | |
RESULT=`ps -A | sed -n /whatpulse/p` | |
if [ "${RESULT:-null}" = null ]; then | |
echo "whatpulse not running " | |
#xmessage "whatpulse not running" | |
zenity --error --text 'whatpulse not running' --display=:0.0 | |
#/home/ben/.whatpulse-bin/whatpulse | |
/home/ben/.whatpulse-bin/startwhatpulse | |
else | |
echo "whatpulse running" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment