Computing.Net > Forums > Solaris > CGI environment variables

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

CGI environment variables

Reply to Message Icon

Name: Andy
Date: September 26, 2002 at 07:13:51 Pacific
OS: Solaris 2.8
CPU/Ram: Sparc
Comment:

I have a cgi script that will initiate a ping to two servers. Dependant on the ping result, the web page will redirect itself to one of the two server. The ping utility is actually a proprietary Netcool ping (nco_ping). This script is as follows...

$availability = `/var/omnibus/bin/nco_ping `;
chomp($availability);

if($availability eq 'Server1 available.')
{
print($cgi->redirect("http://Server1"));
}

This works perfectly from a shell but when run as a cgi script the script runs but the command /var/omnibus/bin/nco_ping does not.

I think maybe it's an environment issue!!

Any ideas would be GREATLY received!!

Thanks



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


How to clone a SunOS hard... how to configure an ip ad...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Solaris Forum Home


Sponsored links

Ads by Google


Results for: CGI environment variables

Expanding Environment Variables www.computing.net/answers/solaris/expanding-environment-variables/4918.html

SOCK_NS environ variable www.computing.net/answers/solaris/sockns-environ-variable/201.html

set environment variables on Korn, C She www.computing.net/answers/solaris/set-environment-variables-on-korn-c-she/516.html