Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Crontab; start a program if it is not running
if ps -ef | grep -v grep | grep ; then
exit 0
~/scripts/ >> /dev/null &
echo "Restarting, it was not running." | wall
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment