Skip to content

Instantly share code, notes, and snippets.

@mickhan
Created June 21, 2013 06:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mickhan/5829386 to your computer and use it in GitHub Desktop.
Save mickhan/5829386 to your computer and use it in GitHub Desktop.
在shell脚本中修改crontab
crontab -l > cron.tmp
echo "0 0 */1 * * /path/to/script.sh" >> cron.tmp
crontab cron.tmp
rm -f cron.tmp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment