PDA

View Full Version : Can one CGI monitor outcome of another CGI?


RobbyJJr
01-15-2003, 05:37 PM
I would like to call and monitor the outcome of one CGI script and use the result to determine if my script needs to be run or not. Any help would be greatly appreciated. Thanks, RobbyJJr

Philip M
01-15-2003, 07:26 PM
Sure. You need a cookie set by Script1 which then determines whether Script2 runs or not.

Have a look at:-

http://www.cgi-resources.com/Programs_and_Scripts/Perl/Cookies/

and

http://www.scriptarchive.com/cookielib.html

for some examples.

Hope this moves you forward!

brothercake
01-15-2003, 07:52 PM
Why not simply post the output from script a as input to script b?

Philip M
01-16-2003, 06:46 PM
Perhaps I misunderstood the question. I envisaged that the second script would not require to be run immediately after the first, otherwise the two scripts could simply be combined together.
In other words, script2 is activated at a later stage than script 1.

RobbyJJr
01-17-2003, 02:26 AM
Thank You for the ideas. I will be trying them ths weekend. I am trying to call the secondary script from the primary script, read the output to determine if the primary script needs to continue it's operation. I think your ideas will work. I'll let you know. :thumbsup: