GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Unix administrators/gurus..I need your help (https://gfy.com/showthread.php?t=578395)

Shaze 02-20-2006 09:40 PM

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

Harrison Richard 02-20-2006 09:48 PM

$ crontab -e

Peacemaker 02-20-2006 09:49 PM

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

Shaze 02-20-2006 10:23 PM

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

Shaze 02-21-2006 03:10 AM

bump for me....still looking for an answer

Shaze 02-22-2006 04:13 PM

bump yet again...

com 02-22-2006 05:34 PM

delete the lines with dd
then hit the escape key, and type verbatim:
:wq!

Sami 02-22-2006 05:37 PM

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.

High Plains Drifter 02-22-2006 05:41 PM

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

Sexkitty 02-22-2006 05:48 PM

check the crontab logs on /var/log , that will give u an idea of what user is calling crontab.
then crontab -e

woj 02-22-2006 06:05 PM

just use :wq!

"crontab: no changes made to crontab" should have tipped you off, heh

Shaze 02-22-2006 08:35 PM

Quote:

Originally Posted by com
delete the lines with dd
then hit the escape key, and type verbatim:
:wq!


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