Gossamer Forum
Home : General : Internet Technologies :

Cron problems...

Quote Reply
Cron problems...
Hi. I seem to be having a bit of a weird problem with crontab on one of my servers. If I log in via SSH, and type;

crontab -l

... it shows the list fine! There is a newline at the bottom of it too, so it should work fine! However, the scripts are not being run :(

I've tried restarting the cron deamon by typing;

/etc/rc.d/init.d/crond restart

.. and that gets the cron deamon started, but it still doesn't like running the crons.

Are there any more things I should try? Any other way to find out why its not running?

TIA.

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] Cron problems... In reply to
What are command codes you are using? It could be that you are using unsupported switches in your command codes, or using a different path to execute programs, like bash, php, etc.
========================================
Buh Bye!

Cheers,
Me
Quote Reply
Re: [Stealth] Cron problems... In reply to
Just basic Perl commands;

0,10,20,30,40,50 * * * * perl /home/httpd/vhosts/ukcrawler/job.cgi
0,10,20,30,40,50 * * * * perl /home/httpd/vhosts/ukcrawler/counter.cgi
0,30 * * * * perl /home/httpd/vhosts/ukcrawler/feat_vehicle.cgi
0,30 * * * * perl /home/httpd/vhosts/ukcrawler/feat_property.cgi
0,30 * * * * perl /home/httpd/vhosts/ukcrawler/feat_classifieds.cgi
0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58 * * * * perl /home/httpd/vhosts/cgi-bin/mail/batch/incoming.pl
0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58 * * * * perl /home/httpd/vhosts/cgi-bin/mail/batch/outgoing.pl


Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates

Last edited by:

Andy: Sep 26, 2003, 4:35 AM
Quote Reply
Re: [Andy] Cron problems... In reply to
You may need to use the full path to perl rather than just perl, like /usr/perl or wherever you perl package exists in the server you are accessing in order to execute your crontab.

Also, try dumping the error message into a text logfile:

> /path/to/logfile.txt for each of your Cron jobs.
========================================
Buh Bye!

Cheers,
Me

Last edited by:

Stealth: Sep 12, 2003, 12:31 PM
Quote Reply
Re: [Stealth] Cron problems... In reply to
The thing was,it wrked fine until this morning! The cron's keep deleting themselves (god knows why) .. so I just run;

crontab < cron_list.txt

.. and it put them back in for me.

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Stealth] Cron problems... In reply to
Madness! It just started working on its own again....Crazy

Right... time for bed I think :)

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates