1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#/bin/sh set -e cd "$SNAP_APP_DATA_PATH" golang-static-http & while :; do for eth in `ip -4 addr show eth0 | grep inet | awk '{ print $2 }'` do echo $eth nmap $eth >> test.out done sleep 100 done