![]() |
Unix administrators/gurus..I need your help
I was using AWGTrade on one of my sites and switched over to another trade script. After deleting AWGtrade from my server the cron that is scheduled to update the toplist is still running but can't find the file because I deleted awgtrade. How do I stop the cron from running now for AWGTrade? I'm receiving emails every 10-20 minutes because the cron is erroring out:
/cgi-bin/toplist/tradeadmin/awgcron_2.sh: No such file or directory is in the email.... how can i see what crons are scheduled to run on my unix box and how do i remove the particular cron? thanks for the help..... |
$ crontab -e
|
crontab -e Edit your crontab file, or create one if it doesn't already exist.
crontab -l Display your crontab file. crontab -r Remove your crontab file. crontab -v Display the last time you edited your crontab file. (This option is only available on a few systems.) |
When I do "crontab -e" the contents of the file appears and it says this in the file:
# DO NOT EDIT THIS FILE - edit the master and reinstall. rest of code has the crontab info..... I tried to delete the lines AWGtrade created by using the "dd" command and then "ZZ" to quit. The system then returns: "crontab.12615" 8L, 442C written crontab: no changes made to crontab When I check the file again the lines are still there...any more suggestions? Thanks in advance... |
bump for me....still looking for an answer
|
bump yet again...
|
delete the lines with dd
then hit the escape key, and type verbatim: :wq! |
if you have root access
do cd /var/spool/cron cat eachoneoftheusernamesinthere see which user has the cron for your script setup. After you find it... crontab -u thatusername -e delete the lines save that should do the trick. |
depending on your version of vi, it won't save to readonly file with ZZ. Like the other dude said use
:wq! colon - enter command w - save file q - quit ! - force save if file is readonly |
check the crontab logs on /var/log , that will give u an idea of what user is calling crontab.
then crontab -e |
just use :wq!
"crontab: no changes made to crontab" should have tipped you off, heh |
Quote:
that was tried already.... |
| All times are GMT -7. The time now is 01:33 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123