[CentOS] Testing remote machine status in a script ?

Sun Oct 25 16:00:33 UTC 2009
Les Mikesell <lesmikesell at gmail.com>

Niki Kovacs wrote:
> Hi,
> 
> I'd like to test the status of a remote machine in a script. Something like:
> 
> IF remote machine is switched on / connected to the network...
> 
> ... THEN launch backup.
> 
> How would you go about that?

I always recommend backuppc (either from http://backuppc.sourceforge.net/ or the 
package in epel) because it does all this for you and gets it right.

-- 
   Les Mikesell
    lesmikesell at gmail.com