Hello,
does anybody know a possibility how to ascertain the current User (User Id,
Username) ?
I thougt of using a module but couldn't find one.
greetings
Stefan
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
If you're on a Win32 system, you can use the standard Win32 module. perldoc
Win32
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Friday, August 16, 2002 10:13 AM
To: [EMAIL PROTECTED]
Subject: ascertain current username
Hello,
does anybody know
On Fri, 16 Aug 2002 [EMAIL PROTECTED] wrote:
Hello,
does anybody know a possibility how to ascertain the current User (User Id,
Username) ?
I thougt of using a module but couldn't find one.
Have you tired parsing the output from the commands id -h and id -u?
Rgds
Rus
--
On Fri, 16 Aug 2002 [EMAIL PROTECTED] wrote:
Hello,
does anybody know a possibility how to ascertain the current User (User Id,
Username) ?
I thougt of using a module but couldn't find one.
greetings
Stefan
Or following up on my own post (which is bad) just found out you could
just
current username
On Fri, 16 Aug 2002 [EMAIL PROTECTED] wrote:
Hello,
does anybody know a possibility how to ascertain the current User (User
Id,
Username) ?
I thougt of using a module but couldn't find one.
Have you tired parsing the output from the commands id -h and id -u?
Rgds
Rus
--
http
Stefan Haberer wrote:
Hello,
Hello,
does anybody know a possibility how to ascertain the current User (User Id,
Username) ? I thougt of using a module but couldn't find one.
my $username = getpwuid $;
perldoc perlvar
perldoc -f getpwuid
John
--
use Perl;
program
fulfillment
--
To
On Aug 16, Rus Foster said:
On Fri, 16 Aug 2002 [EMAIL PROTECTED] wrote:
Hello,
does anybody know a possibility how to ascertain the current User (User Id,
Username) ?
I thougt of using a module but couldn't find one.
Have you tired parsing the output from the commands id -h and id -u?
On Friday, August 16, 2002, at 01:22 , Rus Foster wrote:
On Fri, 16 Aug 2002 [EMAIL PROTECTED] wrote:
Hello,
does anybody know a possibility how to ascertain the current User (User
Id,
Username) ?
[..]
use English;
print $UID;
print $GID;
perldoc perlvar
will lead you to the other
drieux wrote:
I have my nagging doubts about
use English;
when coding in perl...
What are your nagging doubts in particular? I find use English variable
names to be far less magical and far more intuitive than the hsort
versions. I realize that goes against the whole line-noise
On Friday, August 16, 2002, at 08:01 , George Schlossnagle wrote:
drieux wrote:
I have my nagging doubts about
use English;
when coding in perl...
What are your nagging doubts in particular?
[..]
p0: besides the fact that it just is a fun gag to pull
step back, read it
10 matches
Mail list logo