in reply to Re: how to get which user is on
in thread how to get which user is on
$ENV{HOME} is likely to be the home directory of the current user, but don't count on it. Things such as su, sudo, and cron can commonly either leave it pointing at the wrong place or completely unset). Use the value from getpwuid to be certain.</pedant>
|
|---|