ViceRaid has asked for the wisdom of the Perl Monks concerning the following question:
Hi
I'm trying to write a CGI that's a simple wrapper script around ASPSeek. I want to tinker with the environment variables, and maybe filter the output, though this might not be necessary. What I'm trying at the moment:
#!/usr/bin/perl print "Content-type: text/html\n\n"; print `/path/to/aspseek/s.cgi`;
This works fine from the command line run as the user Apache runs as (nobody), and s.cgi runs fine a standalone CGI, but nothing gets printed when I run it within the wrapper script; the backticks return an empty string. $? is 0. What I'm wondering is how "the outside" looks different to a CGI run in backticks by a perl CGI. Incidentally, exec doesn't work either.
cheers
ViceRaid
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Backticks and exec within a CGI
by Abigail-II (Bishop) on Feb 20, 2004 at 14:48 UTC | |
|
Re: Backticks and exec within a CGI
by skx (Parson) on Feb 20, 2004 at 17:30 UTC | |
by ViceRaid (Chaplain) on Feb 20, 2004 at 19:22 UTC |