bradcathey has asked for the wisdom of the Perl Monks concerning the following question:
Fellow Monasterians:
The scenerio is simple (I think). I have several scripts, that when finished, need to start another common script, never to return. I prefer not to do a required or use.
I first tried
exec('newscript.pl');but my screen just went blank. And no matter what I read about exec, I still think I might be misusing it.
Next I tried CGI's very own
print $query->redirect('http://www.domain.com/cgi-bin/newscript.pl');and then
print "Location: http://www.domain.com/cgi-bin/newscript.pl\n\n";both of which would have worked if I hadn't already printed a header earlier (a necessary cookie) giving me the Status: 302 Moved Location: error.
What are my options? Thanks!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How to run a Perl script from another script?
by graff (Chancellor) on Oct 05, 2004 at 01:23 UTC | |
by bradcathey (Prior) on Oct 05, 2004 at 01:36 UTC | |
by graff (Chancellor) on Oct 05, 2004 at 01:58 UTC | |
by bradcathey (Prior) on Oct 05, 2004 at 03:05 UTC | |
Re: How to run a Perl script from another script?
by JediWizard (Deacon) on Oct 05, 2004 at 02:07 UTC | |
Re: How to run a Perl script from another script?
by data64 (Chaplain) on Oct 05, 2004 at 01:03 UTC | |
Re: How to run a Perl script from another script?
by sgifford (Prior) on Oct 05, 2004 at 04:29 UTC | |
Re: How to run a Perl script from another script?
by bwelch (Curate) on Oct 05, 2004 at 14:28 UTC |