Snippets: Shell: Crontab

20th August 2020 at 2:19pm
# Add command to crontab
(crontab -l; echo "*/5 * * * * perl /home/mobman/test.pl") | crontab -
 
# Remove it
crontab -l | grep -v 'perl /home/mobman/test.pl' | crontab -