sara2005 has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks
Sometime back, I had posted a query regarding Issue with executing long process through CGI and had asked for help.
I was clueless then as to why the browser was going blank or exiting with a success status immediately (without executing the exec command in the script!!!) but now I have figured out that the PATH env variable is the one that is causing the issue.
i.e. If $PATH is set properly, then the script executes the command and returns the results.
But, if $PATH is not correct, then the script sets
$data->[0] (line no 61)
and enters the loop
if (my $session = param('session')) (line no 7)
immediately and stalls (or exits )
I set some softlinks and then define the PATH during runtime for the script. Hence, this has become an issue if one of the links is not set properly.
Although I can somehow manage this issue by making sure that the proper links are set in the first place, I am curious as to why this is happening. Unfortunately, I don't know how to proceed further to find the rootcause of this problem.
Looking forward for some help to check this further
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Long Process through CGI and issue with $PATH
by chromatic (Archbishop) on Jul 15, 2006 at 00:56 UTC | |
by sara2005 (Scribe) on Jul 15, 2006 at 02:01 UTC | |
by GrandFather (Saint) on Feb 26, 2007 at 10:32 UTC |