Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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

![]() |
How to clone a SunOS hard...
|
how to configure an ip ad...
|

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