Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh -e
- #
- # Ping pScheduler every so often and grab a netstat when it fails,
- # placing a copy in /tmp/netstat.
- #
- while pscheduler ping --quiet localhost > /dev/null
- do
- sleep 10
- done
- netstat -na | egrep -e '^tcp' | tee /tmp/netstat
- exit 0
Add Comment
Please, Sign In to add comment