Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: Non-shell-invoking system/exec and qx//

by almut (Canon)
on Jun 18, 2008 at 15:52 UTC ( #692731=note: print w/ replies, xml ) Need Help??


in reply to Re: Non-shell-invoking system/exec and qx//
in thread Non-shell-invoking system/exec and qx//

... You're still using the shell though.

Don't think so (at least not on Unix).  For example:

$ strace -fq -eexecve perl -e 'system "/bin/echo", "foo"' execve("/usr/local/bin/perl", ["perl", "-e", "system \"/bin/echo\", \" +foo\""], [/* 71 vars */]) = 0 [pid 27279] execve("/bin/echo", ["/bin/echo", "foo"], [/* 71 vars */]) + = 0

So, no shell involved...


Comment on Re^2: Non-shell-invoking system/exec and qx//
Download Code
Replies are listed 'Best First'.
Re^3: Non-shell-invoking system/exec and qx//
by BrowserUk (Pope) on Jun 18, 2008 at 16:16 UTC

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (14)
As of 2015-07-31 11:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (276 votes), past polls