in reply to How to execute win32 functions when the user session is locked.

Aside from being even more vague, how is this question different from How to continue the execution of a perl script if the user session gets locked while running it.?


Dave

  • Comment on Re: How to execute win32 functions when the user session is locked.

Replies are listed 'Best First'.
Re^2: How to execute win32 functions when the user session is locked.
by pradeep,krishna (Scribe) on Feb 05, 2014 at 05:52 UTC

    While posting the last question I did not try any normal script like

    $n=15; while($n>0) { print "$n,"; $n--; sleep(1); }
    I tried to execute the above perl script and locked the user session...
    I had thought that I can not execute any perl script if the user session is locked in the middle of execution.

    But, It worked as usual without any extra code..., There was no output when i locked the session, as i locked the session before the next second.
    The output seen when I unlocked the session:
    C:\Pradeep>perl test.pl 15,14,13,12,11,10,9,8,7,6,5,4,3,2,1, C:\Pradeep>


    If a normal script is running fine in those conditions then there might be a way where i can change the code or code pattern or add some code to the existing code which uses the win 32 functions and can be executed successfully in the condition I mentioned above.

    Thanks...

    Pradeep Krishna :)