in reply to Change C style Code into Perl on Windows

It might be a figment of my imagination but doesn't the windows netstat have an option to do an implicit loop anyway? I can't remember the switch if it does.

Of course you can always do ( albeit far uglier) a similar loop in a windows batch file.

/J\

Replies are listed 'Best First'.
Re^2: Change C style Code into Perl on Windows
by Tortue (Scribe) on Jun 16, 2005 at 09:40 UTC
    Yes, you can specify a looping interval in seconds as an argument to the Windows version of netstat. For example,

    netstat 10

    displays the netstat info every 10 seconds. But I guess that's not a portable solution.