Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: setuid system() calls on Solaris 11by dave_the_m (Monsignor) |
on Jul 25, 2018 at 08:16 UTC ( [id://1219232]=note: print w/replies, xml ) | Need Help?? |
system() only invokes the shell if it has a single arg containing metachars (so it's relying on the shell to parse the command line). If you do that processing yourself, perl will execute the command directly. For example, change this first line to the second line:
Dave.
In Section
Seekers of Perl Wisdom
|
|