Thanks, your result is exactly what I was looking for! :-D I was complicating my code way too much… :-/
Is it safe to say "Stay away from the Win32:: namespace!" is a good idea?
| [reply] |
Is it safe to say "Stay away from the Win32:: namespace!" is a good idea?
Hell no! There are lots of not just useful, but in many cases little-alternative-to, modules in there.
It just pays to look for the simplest solution first.
BTW: Does this also work for you? (If not, why not?):
my @info = qx[ netstat -a -e -n -o -s -r ];;
print for @info;;
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
| [reply] [d/l] |
Umm… I was a little premature in saying my @info = `start /b /wait netstat -a -e -n -o -s -r`; works.
I am trying to display the output of netstat on a web page. Whenever the CGI script is hit, a command window briefly flickers into existence then closes as the netstat command completes (and this is with BrowserUK's suggestion in place).
The Fine Print: Before I get jumped on for the security issues, Apache is set up to only serve this CGI script to the local network (and the network is physically disconnected from the rest of the world).
| [reply] |