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


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

Thank you very much, that functions perfectly. Smile

Mick