#!/bin/bash#set -x#set -vTARGET_HOST="myserver"# 1 time, no host name, timeout 1sec/bin/ping -c 1 -n -w 1 ${TARGET_HOST} > /dev/nullif [ $? -eq 0 ] ; then/bin/echo "Alive"else/bin/echo "Dead"fiexit 0
0 件のコメント:
コメントを投稿