>>>>> "Brian" == Brian Barto <[EMAIL PROTECTED]> writes:
Brian> Hi all. How can I check, within a script, to see if it is being Brian> run as root or not? I would like it to exit with an error Brian> message if it is not running as root. die "we need more power!" if $>; -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[email protected]> <URL:http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>
