Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

Running build as a CRON job

Quote Reply
Running build as a CRON job
Hi,

I've just expanded onto a dedicated server and would like to run nph-build.cgi as a CRON job in the early hours of each morning when my visitor count is lowest.

I notice that when run through Telnet you have to press CTRL-D to start the script running - would this casue a CRON job to pause waiting for the keystroke?

If there is a specific method of running build through cron could someone let me know.

Thanks.

All the best
Shaun

Quote Reply
Re: Running build as a CRON job In reply to
You would have to add the required parameter to the cron file, like --changed or --all

Try putting this into a file called nph_build.txt

1 0 * * * /path/to/nph-build.cgi --all >> /path/to/nph_build.log 2>&1


Then set it up as normal....the example above builds every day at 12.01am


Why do you have to press Ctrl + D?

Paul
Installations:http://wiredon.net/gt/
Support: http://wiredon.net/forum/

Quote Reply
Re: Running build as a CRON job In reply to
qango,

There is a CRON tutorial written by Bobsie in the Resources section of this site.

Regards,

Eliot Lee