On Tue, 26 Jun 2001, Matija Papec wrote: > is there a more elegant way to find out who is running a script? %ENV is > not reliable and it doesn't contain USER when booting the system, and > "whoami" is external command(yuck :) ) tnx! my $user = getpwuid($<); $< contains the uid of the user. $> if it's a setuid program. -- Brett http://www.chapelperilous.net/btfwk/ ------------------------------------------------------------------------ I'm pretending that we're all watching PHIL SILVERS instead of RICARDO MONTALBAN!
- Re: use strict Brett W. McCoy
- Re: use strict David H. Adler
- use strict Silvio Luis Leite Santana
- Re: use strict Jeff 'japhy' Pinyan
- Re: use strict Silvio Luis Leite Santana
- Re: use strict Peter Scott
- Re: use strict Jeff 'japhy' Pinyan
- whoami? Matija Papec
- Re: whoami? Chas Owens
- Re: whoami? Randal L. Schwartz
- Re: whoami? Brett W. McCoy
- Re: whoami? Paul
- Re: whoami? Chris Hedemark
- Re: whoami? Chas Owens
- use strict Octavian Rasnita
- Re: use strict Jason Purdy
- Re: use strict Frank
- Re: use strict Dave Benware
- Re: use strict dhoubrechts
- use strict Jason Frisvold
- Re: use strict Jeff 'japhy' Pinyan