Skip to content

Instantly share code, notes, and snippets.

@jbottigliero
Created February 11, 2013 22:05
Show Gist options
  • Save jbottigliero/4758040 to your computer and use it in GitHub Desktop.
Save jbottigliero/4758040 to your computer and use it in GitHub Desktop.
Add jobs to crontab quickly via CLI
job="@daily which node" && cat <(grep -v "$job" <(crontab -l)) <(echo "$job") | crontab -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment