Skip to content

Instantly share code, notes, and snippets.

@pnsk
Created October 15, 2015 10:14
Show Gist options
  • Save pnsk/d7eff40b31499729e8ba to your computer and use it in GitHub Desktop.
Save pnsk/d7eff40b31499729e8ba to your computer and use it in GitHub Desktop.
record ping data
nohup ping xxx.xxx.xxx.xxx | awk '{print strftime("%Y-%m-%d %H:%M:%S",systime()) " " $0 }{system("")}'> /tmp/ping_20150410.log &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment