in reply to Re^3: How do I communicate with a Windows process?
in thread How do I communicate with a Windows process?

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).

  • Comment on Re^4: How do I communicate with a Windows process?

Replies are listed 'Best First'.
Re^5: How do I communicate with a Windows process?
by BrowserUk (Patriarch) on Jul 26, 2010 at 08:16 UTC

    So, the "brief flicker" of a command window on the screen of an internal web-server is problem?


    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.
      you can always start it minimized :)
      help start start /min .....

        Indeed.

        Or you can call Win32::SetChildShowWindow( 0 ) prior to calling system.

        But mention of the CGI aspect of the problem in the OP would have been nice. And why a flicker on a (usually unattended) webserver screen is a problem.


        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.