Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: setuid system() calls on Solaris 11

by hippo (Chancellor)
on Jul 25, 2018 at 15:29 UTC ( #1219271=note: print w/replies, xml ) Need Help??


in reply to Re: setuid system() calls on Solaris 11
in thread setuid system() calls on Solaris 11

system ( "/usr/bin/cp -f $version/$obj $dest 2> /dev/null")

The 2> /dev/null is a shell construct for redirecting FD 2 so you would need a shell to handle that. However, why would you want to redirect FD 2 to /dev/null anyway? Surely you want to log the details of any failure?

Furthermore, why fork out to cp when we have File::Copy in core?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2019-10-18 19:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?