Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Controlling the execution.

by shmem (Canon)
on Feb 03, 2014 at 10:54 UTC ( #1073172=note: print w/ replies, xml ) Need Help??


in reply to Controlling the execution.

In the bellow code the execution stops after executing the code system('"%windir%\system32\mstsc.exe"');(opening Remote Desktop Connection), And restarts when I close the window poped by the exicution of it.

I guess that perl waits for the system call to return. Try

system('"start %windir%\system32\mstsc.exe"');

This might help solving (part of) issue 1.

perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'


Comment on Re: Controlling the execution.
Download Code
Re^2: Controlling the execution.
by Corion (Pope) on Feb 03, 2014 at 11:11 UTC

    Alternatively, on Windows, you can launch a task without waiting by using

    system( 1, $cmd )

      Thanks a lot monk...

Re^2: Controlling the execution.
by pradeep,krishna (Scribe) on Feb 04, 2014 at 04:18 UTC

    Thanks a lot monk...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1073172]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2015-07-07 10:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (88 votes), past polls