Skip to content

Instantly share code, notes, and snippets.

@youhide
Last active August 16, 2017 18:07
Show Gist options
  • Save youhide/b1558cef1c28e0e40b90a6083b709e86 to your computer and use it in GitHub Desktop.
Save youhide/b1558cef1c28e0e40b90a6083b709e86 to your computer and use it in GitHub Desktop.
Add crontab on the fly
crontab -l | { cat; echo "* * * * * myscript"; } | crontab -
OR
(crontab -l ; echo "* * * * * myscript")| crontab -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment