Skip to content

Instantly share code, notes, and snippets.

@ginokent
Last active March 14, 2019 07:13
Show Gist options
  • Save ginokent/0a9a120a32e9efb2061272afc5222e80 to your computer and use it in GitHub Desktop.
Save ginokent/0a9a120a32e9efb2061272afc5222e80 to your computer and use it in GitHub Desktop.
tcpdump 時限開始 5分で終了
while sleep 1; do
date
if [ "$(date +%Y%m%dT%H%M)" = "20190314T1612" ]; then
sudo tcpdump -w $(uname -n)_%Y%m%dT%H%M%S.pcap -W1 -G300
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment