Re: Netstat script?
On Sun, 20 Feb 2005, SigmaX wrote:
> I know nothing about scripting, but I want to write/obtain a script
# > that
# > displays the results of the command "netstat -a | grep tcp"
| egrep -iv "stuff that is ok|stuff that is allowed"
# then clears the screen
# > and does so again a few seconds later.
> Else I just need a
> program that does something similar in the console, so I can view it
> over SSH.
you should ssh into the box anyway
and/or run it from cron and email you the results you didnt expect