whiteshark has asked for the wisdom of the Perl Monks concerning the following question:
I have a cgi script written in perl called "chiefdaemon.cgi". This sits in my cgi-bin and runs fine. Within the cgi-bin I also have a perl script called program1.cgi.
The perl engine sits in /usr/bin/perl
chiefdaemon.cgi runs in the background on a timed loop and performs various housekeeping jobs on my site. Depending on the state of the site I want chiefdaemon.cgi to run program1.cgi (in certain circumstances).
I have worked out that I need to be using the exec function, but I cannot get it to work, and none of the on-line tutorials give working examples. In fact most seem to be a cut-and-paste job, as the wording is exactly the same (including the weak pun).
Can anyone tell this lowly initiate what code I should be using? I would be very grateful.
Yours in meditation,
The Whiteshark
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: exec launch
by ikegami (Patriarch) on Aug 25, 2005 at 19:42 UTC | |
|
Re: exec launch
by davidrw (Prior) on Aug 25, 2005 at 19:25 UTC |