in reply to Why "getlogin" not works in this case?

I don't really understand what you're asking. Could you clarify?
  • Comment on Re: Why "getlogin" not works in this case?

Replies are listed 'Best First'.
Re^2: Why "getlogin" not works in this case?
by bdimych (Monk) on Jan 22, 2008 at 15:52 UTC
    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