Created
May 27, 2020 13:46
-
-
Save hackerzgz/dc1e7853b787552a822d797bd1d2da6d to your computer and use it in GitHub Desktop.
watch rx packets
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
#!/bin/bash | |
DEVICE=$1 | |
if [[ "${DEVICE}" == "" ]]; | |
then | |
echo "no special device, exit" | |
echo "usage: ./watch_rx_packets \$DEVICE" | |
exit 1 | |
fi | |
while [[ true ]]; do | |
/sbin/ifconfig "${DEVICE}" | grep "RX packets"; | |
sleep 1; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment