Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: launching external program with SYSTEM causes script to hang until program closed

by naikonta (Curate)
on Sep 27, 2007 at 10:28 UTC ( [id://641321]=note: print w/replies, xml ) Need Help??


in reply to launching external program with SYSTEM causes script to hang until program closed

I think what you're looking for is in the Perl FAQ:
How do I start a process in the background?

Several modules can start other processes that do not lock your Perl program. You can use IPC::Open3, Parallel::Jobs, IPC::Run, and some of the POE modules. See CPAN for more details.

You could also use

system("cmd &")
or you could use fork as documented in "fork" in perlfunc, with further examples in perlipc.

Open source softwares? Share and enjoy. Make profit from them if you can. Yet, share and enjoy!

  • Comment on Re: launching external program with SYSTEM causes script to hang until program closed
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://641321]
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-04-19 12:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found