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

I have a program which Listens to UDP Port and then do some processing. This program has to be executed on windows XP. There are around 100 Windows XP machines on which this program has to be executed. I tried a lot running it using Telnet Logging it from remote but as soon as I close Telnet, the program gets killed. Is there any way I can run the program from telnet and the program is not killed when telnet session is closed? I tried working with Win32::Process but there is no success.

Replies are listed 'Best First'.
Re: Running Command on Windows XP
by Corion (Patriarch) on Jul 10, 2012 at 11:43 UTC

    If you have 100+ machines, have you talked to the system administrator about what system they use to distribute jobs to the machines? I would use that.

      They are using Telnet to install the same. But they keep on waiting till the app is over. While I want the app still to be running when telnet is closed.

        You will need to find out about how to disassociate from the telnet server on the other side. Maybe, if the telnet server gives you a cmd.exe command prompt, you can use the start command to launch a disassociated program. Alternatively, if the server gives you a unix-like shell, you might be able to send your program into the background by closing its input and output filehandles and double-forking. Proc::Background may or may not have a solution there.

Re: Running Command on Windows XP
by zwon (Abbot) on Jul 10, 2012 at 11:36 UTC
Re: Running Command on Windows XP
by locked_user sundialsvc4 (Abbot) on Jul 10, 2012 at 12:19 UTC

    It seems to me that a few short representative blocks of code, in code-tags and more-tags as described in Markup in the Monastery below, may be in order ... to help us truly understand your situation.