Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: how to find out USERNAME from a given file?

by AgentM (Curate)
on Apr 22, 2001 at 09:36 UTC ( #74537=note: print w/replies, xml ) Need Help??


in reply to how to find out USERNAME from a given file?

Use the fourth element in lstat/stat and use getpwuid. The username is the first element returned. Perhaps not overly OS-independent, but it gets the job done under UN*X.
AgentM Systems nor Nasca Enterprises nor Bone::Easy nor Macperl is responsible for the comments made by AgentM. Remember, you can build any logical system with NOR.
  • Comment on Re: how to find out USERNAME from a given file?

Replies are listed 'Best First'.
Re: Re: how to find out USERNAME from a given file?
by slok (Acolyte) on Apr 22, 2001 at 09:54 UTC
    thanks..

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://74537]
help
Chatterbox?
[Lady_Aleena]: shmem, jedikaiti would appreciate that. 8)
[shmem]: no doubt, Lady_Aleena - maybe others, too. A whole barrel just for cookies would be too much for one person alone.
[Lady_Aleena]: shmem, I am a wine drinker. 8)

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2017-04-26 10:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (471 votes). Check out past polls.