Aaron Ballman schrieb dereinst (am 27.02.2004 20:06 Uhr) via
aaron at realsoftware dot com:
>> Or use a shell and the command "id -P" and parse the output.
>
> That just gets you the user's short name, and an easier way to get
> that is use the Shell class and do a 'whoami'
Huh?!? It is the other way round here (OS X 10.3.2), whoami only gives me
the short name, while id -P has full service:
---------------------------------------------------------------
[AlBook-KL:~] kl% whoami
kl
[AlBook-KL:~] kl% id -P
kl:Csq9hr8Kkmthg:501:20::0:0:Knut Lorenzen:/Users/kl/:/bin/tcsh
_______________________________________________________________
Cheers,
Knut
- - -
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|