file owner & group names

Monte Goulding monte at sweattechnologies.com
Tue Aug 17 17:24:19 EDT 2010


Great, cheers Jan

On 17/08/2010, at 10:40 PM, Jan Schenkel wrote:

> On Unix machines you can lookup 
> - the name of group id by parsing the file /etc/group 
> - the name of a user id by parsing the file /etc/passwd
> 
> Should be fairly straightforward to read into a variable and turn that into something searchable. In both files, the line delimiter is a newline character and the item delimiter is a colon character - and in both files the id is the third item.
> 
> HTH,
> 
> Jan Schenkel.
> =====
> Quartam Reports & PDF Library for Revolution
> <http://www.quartam.com>
> 
> =====
> "As we grow older, we grow both wiser and more foolish at the same time."  (La Rochefoucauld)
> 
> 
> --- On Tue, 8/17/10, Monte Goulding <monte at sweattechnologies.com> wrote:
> 
>> From: Monte Goulding <monte at sweattechnologies.com>
>> Subject: file owner & group names
>> To: "How to use Revolution" <use-revolution at lists.runrev.com>
>> Date: Tuesday, August 17, 2010, 4:58 AM
>> Hi
>> 
>> I'm wondering if there is a way to translate the numeric
>> owner and group returned in the detailed files into the
>> actual names. At present I'm thinking of parsing ls -l but
>> if there's another way to do it I'd be interested to know.
>> 
>> Cheers
>> 
>> Monte_______________________________________________
>> 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
>> 
> 
> 
> 
> 
> _______________________________________________
> 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