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!
  1. #!/bin/bash
  2. hst=""; slp=10; for  ((i=0; i<=2; i++)) do echo "iter $i start:";\
  3. ping -c 10 "$hst"; echo  "iter $i end, now sleep $slp sec";\
  4. sleep $slp;done; echo 'ok!'
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand