This is a very common problem. When you run the script from the command
line, you are running it with different privileges and a different path than
when the web server runs it.
Most likely, either the command is not in the path for CGI scripts (try
setting $ENV{PATH} or calling the command with
All,
i am new to cgi. Please let me know why I dont get the data printed?
I have abc.cgi in /var/www/cgi-bin
When the $cmd is "ls" I get the filenames when I visit localhost/cgi-bin/abc.cgi
But when the $cmd is the snmpquerry, I get nothing on the page, though I get
the desired output(value of sy