[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Failover for the Raq 2



>Does anyone know of a script which can run a command (i.e. /etc/rc.d/inet.d/httpd start) on a local server >when a remote server port or IP address(mail, web or DNS) is not responding to a ping?
 
Do you want to run a _local_ command when a _remote_ server is not responding? (don't you want to run a command on the server that is not responding?)

You can easily do such a script in Perl, as there exists a module for Ping and then you can use system() to run a command on the local machine.


-- 
Jens Kristian Søgaard, Mermaid Consulting I/S,
jens@xxxxxxxxxxxxxxxxxxxx,
http://www.mermaidconsulting.com/