15

I'm using the "whenever" gem and got it working by doing:

whenever --set environment=production --update-crontab theCronJob

The interval I'm using is 2 minutes since I'm still trying to figure it out. However, now I get a You have mail message in my terminal window every 2 minutes. I guess the cron runs and lets me know about it. How do I stop my cron from running? These messages are starting to pile up.

Thank you

AdamT
  • 6,405
  • 10
  • 49
  • 75

2 Answers2

35

To delete the auto-generated cronjobs from your crontab, run whenever against your defintion file with the -c flag:

$ whenever -c theCronJob

Alternatively, open your crontab...

$ crontab -e

... and then manually delete the undesired entries.

jbrowning
  • 623
  • 5
  • 5
4

following will delete the scheduled crontab:

crontab -r