Jas wrote:

chomp(my $userid = `/usr/ucb/whoami` || `/usr/bin/whoami` || 'root');

I am not sure what this means? Is this the process ID or the perl script is running as a root user?



Nope, it is a simple short circuit to see who the UserID program of the program was;

It states that if I cant tell who I am (because, for
example, all the programs I tried for whoami failed
(but I ignored the errors)) then I will pretend I am
root -- doesnt mean I am root...

-Bill-
__Sx__________________________________________
http://youve-reached-the.endoftheinternet.org/

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to