in reply to Help required for CGI Script
in thread CGI Script Working fine from my command prompt but Shows Internal server error when called through browser
Likely, the user your CGI script runs as is not the user you are using from the command line. Or maybe the web server user does not have access to the autostatus program because $ENV{PATH} is set up differently under your web server than it is for your command prompt. You never check the result/error status of your backtick call.
As a first and easy try, I would attempt to give the full path to autostatus instead of hoping that $ENV{PATH} is set up as it is for your shell account.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Help required for CGI Script
by Anonymous Monk on Dec 27, 2012 at 10:07 UTC | |
by Corion (Patriarch) on Dec 27, 2012 at 10:10 UTC | |
|
In Section
Seekers of Perl Wisdom