P is for Practical | |
PerlMonks |
Re^2: setuid system() calls on Solaris 11by haukex (Archbishop) |
on Jul 25, 2018 at 18:26 UTC ( [id://1219282]=note: print w/replies, xml ) | Need Help?? |
I'm not sure if the replacement you showed would work on your shell due to the redirection. What I would try first is this:
I've added some error checking. Note that this suffers from potential security issues if those variables contain any unchecked user input! (And potential quoting issues.) I wrote more on that topic, and how to run external commands using modules, here.
In Section
Seekers of Perl Wisdom
|
|