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

nph-build.cgi in cron mode

Quote Reply
nph-build.cgi in cron mode

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.


Last edited by:

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

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

perl /full/path/to/admin/nph-build.cgi --all

Then set the cronjob up as:

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


Andy (mod)
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