Re: Netstat script? :-)
On Sat, 19 Feb 2005, Gene Heskett wrote:
> On Saturday 19 February 2005 02:29, Alvin Oga wrote:
> >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.
> >sleep 5
> wrong place, data written and erased so fast it won't be readable.
> Put the reset & clear operations below the sleep 5.
:-) -- ya got me (-:
amongst other minor booboo for some thinking needed like
something to call the functions ... actually, lots of other
tidbits needed to clean it up for production use