Pejman Moghadam / General

Disable crontab accidental remove

Public domain


Add to .bashrc

disable-crontab-remove() {
  [ "$1" == "-r" ] || [ "$1" == "-d" ] && echo "Oops..." && return
  crontab $*
}
alias crontab=disable-crontab-remove

BY: Pejman Moghadam
TAG: cron
DATE: 2015-03-06 00:54:41


Pejman Moghadam / General [ TXT ]