[CentOS] Testing remote machine status in a script ?
Benjamin Donnachie
benjamin at py-soft.co.ukSun Oct 25 11:30:25 UTC 2009
- Previous message: [CentOS] Testing remote machine status in a script ?
- Next message: [CentOS] Testing remote machine status in a script ?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
2009/10/25 Niki Kovacs <contact at kikinovak.net>: > IF remote machine is switched on / connected to the network... Use ping and test the result; perhaps something similar to this: case `ping -qnc 1 10.0.0.2 2>&1` in *'100% packet loss'*) exit 1 ;; esac See the script at the bottom of http://www.digitalpeer.com/id/configuringa for more info. Ben
- Previous message: [CentOS] Testing remote machine status in a script ?
- Next message: [CentOS] Testing remote machine status in a script ?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list