Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: system() and output redirect (IPC::Run3, Capture::Tiny, shellquote)

by Anonymous Monk
on Mar 14, 2014 at 07:44 UTC ( [id://1078299]=note: print w/replies, xml ) Need Help??


in reply to system() and output redirect

However, I don't know how to use ">file" in the second mode

Hi llancet

shell functionality is handled by the shell :) unless your program handles it

so to safely use the shell you might try String::ShellQuote , Win32::ShellQuote, Proc::Background, system_detached

or to handle it from your program you might try Capture::Tiny, IPC::Run3,

  • Comment on Re: system() and output redirect (IPC::Run3, Capture::Tiny, shellquote)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2024-04-19 23:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found