If you are on a Win32 system, you can check the $ENV{USERNAME} value. 

-----Original Message-----
From: Chance Ervin [mailto:[EMAIL PROTECTED] 
Sent: Saturday, April 10, 2004 5:07 PM
To: beginners
Subject: Who is running my program?

I am writing a perl program to access client information for reading,
writing, and updating.

I only want superuser to be able to do the writes and updates, though,
while all other accepted gpg users can read the information.

Is there an easy way to check which user is running your scripts?

Thank you.

--Chance


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




--
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