Perl: the Markov chain saw | |
PerlMonks |
Re^2: Syntax using user define $>by bigal_george (Acolyte) |
on Jan 01, 2020 at 01:24 UTC ( [id://11110810]=note: print w/replies, xml ) | Need Help?? |
OK sorry if confusing. Testing $> itself should be false when sudo - yes. Goal is to allow sudo when needed by files permissions and user otherwise, Info I had said that when running administrator these should be called: use strict; use warnings FATAL=>"all"; if($>) { exec { "/path-to-wrapper-program" } ( "/path-to-wrapper-program",$0,@ARGV); } My confusion was that Id assumed the exec call was for sudo but now seems pointless, as application runs fine without.
In Section
Seekers of Perl Wisdom
|
|