goto 文は csh でしか使えない。
#!/bin/csh
#/usr/local/abin/ETHER-VOYAGE
sudo ether-wake -i eth0 00:0A:B9:44:FC:B5
case1:
sleep 1
#
set host1=192.168.11.12
set hen1=`ping -c 1 "$host1" | grep ttl | awk '{print $8}'`
set hen2 = ms
echo "---------"
echo "$hen1"
echo "$hen2"
echo "---------"
if ( "$hen1" == "$hen2" ) then
echo "(_´Д`) アイーン"
sshpass -p "we300ab" ssh -o StrictHostKeyChecking=no root@arch
else
echo "APU1Cが起動していません。"
goto case1
sleep 1
endif
— posted by くま at 11:39 am TrackBack [0]
Comments