Skip to content

Instantly share code, notes, and snippets.

@pastranastevenaz
Created July 24, 2019 19:07
Show Gist options
  • Select an option

  • Save pastranastevenaz/9dbf69bbd78e786d53b2c30298e170fb to your computer and use it in GitHub Desktop.

Select an option

Save pastranastevenaz/9dbf69bbd78e786d53b2c30298e170fb to your computer and use it in GitHub Desktop.
#!/bin/bash
ping 192.168.1.1 -c 450 | while read ping; do echo “$(date): $ping”; sleep 30; done
ping 192.168.100.1 -c 450 | while read pong; do echo “$(date): $pong”; sleep 30; done
ping google.com -c 450 | while read pang; do echo “$(date): $pang”; sleep 30; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment