Old Crontab still Running
I've made several changes to a crontab file, by envoking the command, as the user:
crontab -e The vi editor is the editor that started. I made changes, (added comment # markers, added new commands, etc). Then used :wq! to save. However, even though I have several commands/scripts that have now been commented out, the scripts are still running. Thus, an old cron must still be installed somewhere, so how do I find this rogue crontab? Regards, Van |
Just as a followup, I tried to remove the crontab alltogether, by envoking:
crontab -r Then reinstating a new copy of the crontab by typing: crontab crontab.entry Also, it appears that the new commands I've installed are indeed running, but the scripts that I commented out are still running too. # 04,34 * * * /script_to_run > /logfile 2>&1 for example is still running, even though it's commented out. Regards, Van |
Could it be that either root or another user also has a crontab file on the system which runs those commands?
|
stopping that old crontab
Hi,
crons generally run from specific users directory environments, so there could be a possibility that the same cron is installed in some other users environment. If that is still not the case , i assume you know that name of the scripts that are running, just rename them or move them to other directory. This will not enable the scripts to be fired. But this is risky since the job could be a email sender (i m not sure , just a general scenario) and the sendmail can crash trying to run the program.. But i suggest you try to look into other users crontabs ... Hope this works , do let me know , All the best Shaheen |
All times are GMT -5. The time now is 09:18 PM. |