How can I stop a cron job which is currently running?
|
migrated from stackoverflow.com Jan 12 '11 at 7:29
|
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) |
|||
|
|
|
To stop running cron job .First get the process id of your command with
eg:-
and run
|
|||
|
|
|
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
|
||||
|
|
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 |
|||||||
|
|
First type Then note down the Then type
Also do have a look at these links (superuser links) : |
|||
|
|
