in reply to Re: Differences between CGI and command-line versions of scripts?!?
in thread Differences between CGI and command-line versions of scripts?!?
Exactly. Unless "." is in $ENV{PATH}, (which is probably won't be when the CGI is invoked), your open() will fail. Replace open(PS, "ejbreg.pl |") || die "Can't open script"; with open(PS, "./ejbreg.pl |" ) or die "Can't open script: $!"; And depending on the webserver, you may need to chdir() to get where you need to be.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Differences between CGI and command-line versions of scripts?!?
by jbwiv (Acolyte) on Apr 04, 2001 at 19:23 UTC |