Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: various questions about Win32::Process ( system_detached Capture::Tiny )

by Anonymous Monk
on Jan 10, 2014 at 18:38 UTC ( [id://1070168]=note: print w/replies, xml ) Need Help??


in reply to various questions about Win32::Process

Try system_detached

that is launch a detached process in the background with a new shell, have that process be a perl program that spawn whatever you're really spawning , capture STDIN/STDERR/... IPC::Run3/Capture:: Tiny... save wherever you want to save, and exit with the true programs exit value

if it takes too long kill it

Then get data from cache or tempfiles, perform any cleanup ... whatever

  • Comment on Re: various questions about Win32::Process ( system_detached Capture::Tiny )

Replies are listed 'Best First'.
Re^2: various questions about Win32::Process ( system_detached Capture::Tiny )
by nabbo (Novice) on Jan 13, 2014 at 13:18 UTC

    I'm not very comfortable having a perl process spawning another perl process launching a command.
    Moreover, it does not solve all my problems (I'm not even sure it does solve any ?)

      Moreover, it does not solve all my problems (I'm not even sure it does solve any ?)

      So you tried it?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2024-04-25 07:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found