Skip to content

Instantly share code, notes, and snippets.

@glefait
Created February 10, 2020 14:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save glefait/f6b6737acb8c0b63fe9337db53dfa589 to your computer and use it in GitHub Desktop.
Save glefait/f6b6737acb8c0b63fe9337db53dfa589 to your computer and use it in GitHub Desktop.
log_pings.sh
#!/bin/bash
for i in {1..1000}; do
line="$(date +'%F %T') $(ping -c 25 193.252.148.140|tail -n 2|tr '\n' '\t')";
echo $line >> ~/sfr_ping.txt;
echo $line;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment