Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Opening files for other exes in Windows

by Mandrake (Chaplain)
on Aug 22, 2006 at 06:16 UTC ( [id://568779]=note: print w/replies, xml ) Need Help??


in reply to Opening files for other exes in Windows

>Is there a way to spawn the system call in a separate thread or some other means such that I'm not hanging the program waiting for the user to close the viewing exe?
Say
my $File = "perl script.pl &" my $returnValue = system($File); print "Done. ReturnValue $returnValue\r\n"; #rest of the program goes here
Please note the ampersand (&) in the system call.
Here, the system will not be waiting for the execution of the script specified in the $File variable. It just proceeds with the next line and the system call will be running in the background.
Is this what you need?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (5)
As of 2024-03-28 13:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found