the user's name under OSX

Scott Morrow scott at elementarysoftware.com
Fri Dec 19 17:01:48 EST 2008


Hello Gordy,
Thanks for that. I was (am!) ignorant of dscl
I'll continue looking for something (additional) that might work in  
earlier versions.

-Scott

On Dec 19, 2008, at 5:14 AM, Gordon Tillman wrote:

> Scott in 10.5 that information is stored in Directory Services.  The  
> dscl command is used to interact with that.  For example:
>
> $ dscl . -read /Users/gordy RealName
> RealName:
> Gordon Tillman
>
> (that's me!)
>
> --gordy
>
>
> On Dec 19, 2008, at 06:07, Scott Morrow wrote:
>
>>
>> I'm trying to get the user's name under OSX. I can get the  
>> environment variable
>>
>> $USER
>>
>> but this only returns the user's short name.  Any ideas for getting  
>> the full name?
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list