How can I stop a cron job which is currently running?
feedback
|
migrated from stackoverflow.com Jan 12 '11 at 7:29
This question came from our site for professional and enthusiast programmers.
|
You can do this the same way you'd stop any process. To stop a currently running
or if you know the PID (you can determine it by running
(substituting the actual PID) | |||
|
feedback
|
|
You can edit the cron table and comment out the task in question. Switch to the user that controls the task, export your editor of choice into the environment, then use
| ||||
feedback
|
|
If you are using Redhat (RHEL)/Fedora Core/Cent OS Linux use the following command :
If you are using Debian or Ubuntu Linux the following command :
P.S : You should be root to do these things | |||||||
feedback
|