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

HI, I have a perl script, compiled with pp into an .exe file. When the script runs, it pops an small cmd window with prompts. I run this file remotely on Windows using Remote Desktop. If I will minimize my remote Window, the program will stop running and disapear. Any idea why it happens, and how to avoid it ? thanks
  • Comment on Windows - executable script will stop running if a remote Window is minimized

Replies are listed 'Best First'.
Re: Windows - executable script will stop running if a remote Window is minimized
by SuicideJunkie (Vicar) on Sep 16, 2015 at 13:57 UTC

    I'd suggest piping the output (both STDOUT and STDERR) to files so you can see what happened and what error was thrown.

    Without more info, there isn't much anybody can do.

Re: Windows - executable script will stop running if a remote Window is minimized
by Discipulus (Canon) on Sep 17, 2015 at 07:39 UTC
    Hello,
    it seems not very Perl related issue.. anyway tell me if i understand well: you are on pc1, open an rdp session to srv1. On srv1 you doubleclick an executable (a Perl program packed with pp) that stops running if you minimize (not close) the rdp srv1 window?
    If you do not minimize the window the program runs fine? Are you sure you are not logged off?

    L*
    There are no rules, there are no thumbs..
    Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
Re: Windows - executable script will stop running if a remote Window is minimized (suspend)
by Anonymous Monk on Sep 16, 2015 at 23:42 UTC
    maybe its like closing your laptop lid, the computer either goes on "stand by" or "hibernate", in both cases all programs are suspended and they stop running ... ask the MSDN to be for sure about it :)