Skip to content

Instantly share code, notes, and snippets.

@rafaelbrandao
Created January 3, 2013 05:17
Show Gist options
  • Save rafaelbrandao/4441021 to your computer and use it in GitHub Desktop.
Save rafaelbrandao/4441021 to your computer and use it in GitHub Desktop.
Add this to .bashrc to startup automatically an scheduled task when you open terminal.
if [ `ps auxw | grep "scheduled-task.sh" | wc -l` -lt 2 ];
then
sh $HOME/scheduled-task.sh "02:10" "echo 'hello'"
fi;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment