Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Cronjob with nph-build.cgi

Quote Reply
Cronjob with nph-build.cgi
Hi,

I checked the forum but didn't find how can we do a nph-build with a cronjob. My ISP doesn't allow to put "--strings". So, please could you show me what I would have to modify, in order to launch nph-build via cronjob ?

I would like to use a nph.verify.cgi as if I entered the option "-all" on command line.



Thank you a lot from France Smile!

Gautier.
Quote Reply
Re: [Gautier] Cronjob with nph-build.cgi In reply to
You can run nph-build.cgi without any of the query strings after. i.e. just calling it via perl nph-build.cgi.

Hope that helps Tongue

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.] Cronjob with nph-build.cgi In reply to
No you can't. If you do that you'll just get the help page.
Quote Reply
Re: [Paul] Cronjob with nph-build.cgi In reply to
In Reply To:
No you can't. If you do that you'll just get the help page.


Indeed if I did that this would show the help page. I think the best would be to modify nph-build.cgi in order to launch a Build All, of course, without adding a --all.

The problem is I know only PHP programming, not Perl programming Blush. And I'm a little lost Crazy !

Please can you help me modifying nph-build.cgi to launch a Build All without adding a "--all" ?

Thank you a lot !!!

Regards,

Gautier.
Quote Reply
Re: [Gautier] Cronjob with nph-build.cgi In reply to
Replace usage(); # default on line 53 with build_all(); # default.

That should do the job.

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] Cronjob with nph-build.cgi In reply to
Yes ! It works like a charm Smile.

Thank you a lot Ivan Smile !!!

Regards,

Gautier.
Quote Reply
Re: [Paul] Cronjob with nph-build.cgi In reply to
Yup, my boo boo Paul. I beleive that you can do it by adding ?do=all at the end of it though. I have it working fine re-building my database like that ;)

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.] Cronjob with nph-build.cgi In reply to
do=all won't work either I wouldn't have thought.

Look in nph-build.cgi at how it works.

Last edited by:

Paul: Apr 24, 2002, 6:25 AM
Quote Reply
Re: [Paul] Cronjob with nph-build.cgi In reply to
Yup, your right. I just double checked it with my cron file, and it is --all, sorry for the confusion Tongue

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!