Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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!

share|improve this question

migrated from stackoverflow.com Mar 5 '10 at 11:28

This question came from our site for professional and enthusiast programmers.

2  
You should post this on Superuser. –  David Pfeffer Mar 4 '10 at 15:22
add comment

2 Answers

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...

share|improve this answer
    
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 '10 at 16:10
add comment

Run command

sudo crontab -e  

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

share|improve this answer
    
The sudo command didn't work for me, but removing it did. –  Anonymous Mar 4 '10 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 '10 at 16:40
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.