source: soft/build_system/build_system/upload/robot/trunk/robot-ping @ 1

Last change on this file since 1 was 1, checked in by fasma, 13 years ago

Initial Import from Mandriva's soft revision 224062 and package revision 45733

File size: 177 bytes
Line 
1# to be sourced
2
3HOST=$1
4if [ -z "$HOST" ]; then
5    echo "syntax: $0 <host>"
6    exit 1
7fi
8
9if ! ping -c 1 -i 30 $HOST > /dev/null; then
10    echo "$HOST is down"
11    exit 1
12fi
Note: See TracBrowser for help on using the repository browser.