#!/bin/ash
while true
do
date
echo $@
$@
sleep 1
done
用法:
./forever.sh ping baidu.com
#!/bin/ash
while true
do
date
echo $@
$@
sleep 1
done
用法:
./forever.sh ping baidu.com