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
In reply to Backticks and exec within a CGI by ViceRaid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |