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

Re^2: Why "getlogin" not works in this case?

by bdimych (Monk)
on Jan 22, 2008 at 15:52 UTC ( #663609=note: print w/replies, xml ) Need Help??


in reply to Re: Why "getlogin" not works in this case?
in thread Why "getlogin" not works in this case?

sh -c "/usr/bin/time perl -e '$|=1; print getlogin(), chr(10)' + - prints username sh -c "/usr/bin/time perl -e '$|=1; print getlogin(), chr(10)' & wait" + - prints nothing - that is sh -c "/usr/bin/time perl -e '$|=1; print \$ENV{USER}, chr(10)' & wait +" - prints username

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://663609]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (7)
As of 2018-01-16 15:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How did you see in the new year?










    Results (182 votes). Check out past polls.

    Notices?