Skip to content

Instantly share code, notes, and snippets.

@baojie
Forked from markeganfuller/disable_crontab_r
Last active August 29, 2015 14:14
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 baojie/553ee75188c12ebe5575 to your computer and use it in GitHub Desktop.
Save baojie/553ee75188c12ebe5575 to your computer and use it in GitHub Desktop.
# Disable crontab -r
function crontab ()
{
# Replace -r with -e
/usr/bin/crontab "${@/-r/-e}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment