notjames
asked on
Running CGI from command line with URL command params...
ie: I want to run a cgi script from unix command line to check if it will run properly. However, the shell doesn't recognize the params Im feeding the script as params that go with the script.
I've tried:
echo "?blah=0" | ./script.cgi
script.cgi ?blah=0
script.cgi '?blah=0'
etc etc
I continue to get this error:
./script.cgi: require: command not found
./script.cgi: MAIN:: command not found
./script.cgi: syntax error near unexpected token `&R'
./script.cgi: ./menu.cgi: line 13: ` &ReadParse;'
Thanks in advance
note: this is not my script and I don't know the inner workings of it. A friend of mine (IRL and trustable) wrote this. However, he's not sure how to do this either (newbie to Perl and cgi. I am too)
Jim
I've tried:
echo "?blah=0" | ./script.cgi
script.cgi ?blah=0
script.cgi '?blah=0'
etc etc
I continue to get this error:
./script.cgi: require: command not found
./script.cgi: MAIN:: command not found
./script.cgi: syntax error near unexpected token `&R'
./script.cgi: ./menu.cgi: line 13: ` &ReadParse;'
Thanks in advance
note: this is not my script and I don't know the inner workings of it. A friend of mine (IRL and trustable) wrote this. However, he's not sure how to do this either (newbie to Perl and cgi. I am too)
Jim
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
The environment variable seemed to work. Now I need to debug the nasty bugger!
Thanks!
Thanks!
ASKER