Skip to content

Instantly share code, notes, and snippets.

@hkskoglund
Created November 21, 2017 09:42
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 hkskoglund/a17ce1c1d79abc176c50d040b3cb1042 to your computer and use it in GitHub Desktop.
Save hkskoglund/a17ce1c1d79abc176c50d040b3cb1042 to your computer and use it in GitHub Desktop.
Create ping log from camera DCS-936L
ping -i 5 -D 192.168.0.110 | while read pong; do if [[ $pong != *"PING"* ]]; then echo "$(date +'%F %T'): $pong" | tee -a ~/Nedlastinger/ipcamping.log ; fi; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment