kpd01 has asked for the wisdom of the Perl Monks concerning the following question:

I am trying to develop a GUI application that will Telnet into a remote machine and gather information from it. The problem that I am having is that while it is gathering the information from the remote machine I seem to loose functionallity in the GUI window. I cannot even get the window to come back to the foreground if another window is placed over part of it. Is there a way that I could possibly spawn the telnet process and immediatally return control to the parent process while still being able to periodically checking the child process for it's status ? Or am I approching this problem totally wrong........ BTW...This is being done on a win2000 machine......

Replies are listed 'Best First'.
Re: Using Net::Telnet and Win32::GUI
by hardburn (Abbot) on May 13, 2003 at 17:19 UTC

    You could fork off and have the child process do the telnetting. Then read the data back from the child through a pipe.

    ----
    I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
    -- Schemer

    Note: All code is untested, unless otherwise stated

      I was under the impression that the fork command was only applicable on UNIX type systems........Since I have only been using perl for about 6 months I may be wrong or maybe there is some other command that is similar in the windows environment.......any help is appreciated.........

        If perl was compiled with iThreads (and most Win32 binary distributions are), then iThreads are used to emulate fork() on Win32.

        ----
        I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
        -- Schemer

        Note: All code is untested, unless otherwise stated