1

I created a cron job for a wordpress plugin that i no longer want running. I am not very good at navigating around in unix. The cron job was the following:

*/10 * * * * /usr/bin/wget -O /dev/null http://ADDRESS_OF_THE_FILE >/dev/null 2>&1

Does anyone have pointers how to navigate to this cron job and delete it?

Thanks!

1
  • 2
    You should post this on Superuser. Mar 4, 2010 at 15:22

2 Answers 2

13

run in console:

crontab -e

then you will get crontab opened with an editor, simply delete the line there, save the file and quit editor - that's it...

1
  • Yep - this worked. Turns out I was totally backwords with my whole set up and hadn't even saved the cronjob in the first place. Sigh. It's sad when something that should take 5 minutes takes an hour. Thanks for your help
    – Anonymous
    Mar 4, 2010 at 16:10
2

Run command

sudo crontab -e  

It will open cron jobs in text editor. Remove your line and save the file :)

3
  • The sudo command didn't work for me, but removing it did.
    – Anonymous
    Mar 4, 2010 at 15:42
  • @hollyb: sudo is needed just if you are running cronjob as root, but if you're running it as normal user - then you don't need it...
    – Laimoncijus
    Mar 4, 2010 at 16:40
  • If you don't know what you're doing you certainly should be running everything as root.
    – Marki
    Nov 18, 2014 at 19:15

You must log in to answer this question.