Gossamer Forum
Home : Products : Gossamer Links : Discussions :

build all with cron question

Quote Reply
build all with cron question
Hi all, I'm having trouble with crontab...

I've installed the following in crontab (it shows up with crontab -l )

20 * * * * /path/to/lsql/admin/nph-build.cgi --all > /path/to/lsql/admin/logs/build_links.log

I've got the paths correct (it runs if I put perl -I in front at the commandline). And if I understand right, it should run at the 20 minute point of every hour, every day, every day of the week, and every month... However, it doesn't. No output to log file, no change in static html files (even when changes have been made)... :-(

Have I done something totally wrong?

I don't really know where to go from here, and would appreciate any help!

Thanks!

Stephen
Have a great Labor Day weekend!
Quote Reply
Re: [biketrials] build all with cron question In reply to
Hi. If you could send me admin acess, i'll install my Cron_Manager plugin for you, so we can do a bit of debugging.

In SSH, when you try;

crontab -l

what do you see? Its most likely a problem with a newline being there/not being there, in the cron file... I had loads of problems with this, before I worked out the problem, and wrote my Cron_Manager plugin :)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] build all with cron question In reply to
Thanks, Andy!!

You were spot on with the newline thing... I did crontab -e and just added a newline, exited, and the cron job ran just fine! I don't think any of the tutorials or things I read on cron mentioned anything about a newline... :-(

Cheers!

Stephen
Quote Reply
Re: [biketrials] build all with cron question In reply to
Yeah, they didn't tell me either. I think Paul or Alex mentioned it to me once before. Spose its one of those things that has to be passed on from developer to developer Frown

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!