Skip to content

Instantly share code, notes, and snippets.

@lamegaton
Last active July 1, 2021 22:55
Show Gist options
  • Save lamegaton/98d1c21d0b1ceb1a15baf90b4bac59cb to your computer and use it in GitHub Desktop.
Save lamegaton/98d1c21d0b1ceb1a15baf90b4bac59cb to your computer and use it in GitHub Desktop.
Ping manually on linux
#!/bin/bash
running=true
for ((i=1; i <= 100; i++ )); do
if [[ "$running" == "true" ]]; then
printf ">>>>>>>>>>>>>> $i Iteration <<<<<<<<<<<<<<\n"
ping -c 10 www.google.com -A
fi
read -sn 1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment