Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: Safely capturing the output of an external program

by AppleFritter (Vicar)
on Mar 09, 2020 at 08:06 UTC ( #11114001=note: print w/replies, xml ) Need Help??


in reply to Re: Safely capturing the output of an external program
in thread Safely capturing the output of an external program

Not being in the core is fine. And this, from IPC::System::Simple's documentation,

Better still, you can even use capturex() to run the equivalent of backticks, but without the shell:

is exactly what I wanted to read. Thanks!

  • Comment on Re^2: Safely capturing the output of an external program

Replies are listed 'Best First'.
Re^3: Safely capturing the output of an external program
by perlancar (Hermit) on Mar 10, 2020 at 06:14 UTC
    I'd like to offer another alternative, my IPC::System::Options which exports readpipe() and lets you use the standard backtick operator but with the option of not having to use shell.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (1)
As of 2023-03-21 04:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (59 votes). Check out past polls.

    Notices?