Re: Netstat script?
On Sun, 20 Feb 2005, SigmaX wrote:
> I know nothing about scripting, but I want to write/obtain a script
#!/bin/bash
highlySecretScript()
{
# > 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
reset
clear
# > and does so again a few seconds later.
sleep 5
}
> 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
c ya
alvin
Reply to: