Last active
March 14, 2019 07:13
-
-
Save ginokent/0a9a120a32e9efb2061272afc5222e80 to your computer and use it in GitHub Desktop.
tcpdump 時限開始 5分で終了
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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