ping host N-times with sleep (as delay)
a guest Sep 11th, 2019 93 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- hst="220.127.116.11"; slp=10; for ((i=0; i<=2; i++)) do echo "iter $i start:";\
- ping -c 10 "$hst"; echo "iter $i end, now sleep $slp sec";\
- sleep $slp;done; echo 'ok!'
RAW Paste Data