Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Problem calling one script from another

by markwild (Sexton)
on Dec 11, 2000 at 12:23 UTC ( [id://46047]=note: print w/replies, xml ) Need Help??


in reply to Problem calling one script from another

I think what you'd be better off doing is "requiring" or "use"ing the indexer.pl script, rather than running it from a new shell. So, I'm guessing that if the current dir while running your cgi script is the cgi directory, you should just be able to put require "indexer.pl"; into your script. I think you'd need to monkey a bit with the indexer script, making it return a 'true' (i.e. non-zero) value at the end. Thoughts, anyone?
  • Comment on Re: Problem calling one script from another

Replies are listed 'Best First'.
Re: Re: Problem calling one script from another
by JP Sama (Hermit) on Dec 11, 2000 at 18:09 UTC
    Well, i think a DUM way to do that would be:

    use LWP::Simple;

    get "http://domain.com/cgidir/etc...etc...etc";

    # jpsama

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://46047]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2024-04-19 13:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found