Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

nph-build.cgi in cron mode

Quote Reply
nph-build.cgi in cron mode
Hello,

I would like to use nph-build.cgi in cron mode.
But, my mutualized hosting does not give the possibility of using an argument (nph-build.cgi --changed) in the path.


There would be a solution for to use a script to build the pages without argument ?

For example:

nph-build_changed.cgi and nph-build_all.cgi

I tested this, but that does not function.
<?php exec('wget /home/.../admin/nph-build.cgi --changed') ; ?>

Thank you for your assistance.

Mick

Last edited by:

MJ_: Apr 20, 2010, 12:18 PM
Quote Reply
Re: [MJ_] nph-build.cgi in cron mode In reply to
Hi,

You could try it with a .sh script... something like:

build_all.sh
Code:
perl /full/path/to/admin/nph-build.cgi --all

Then set the cronjob up as:

Code:
sh /full/path/to/admin/build_all.sh

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] nph-build.cgi in cron mode In reply to
Hi Andy,

Thank you very much, that functions perfectly. Smile

Mick