Re: file owner group names

2010-08-18 Thread Monte Goulding
Thinking it over, we could build a caching mechanism and only fall back to stat if we don't have the id in our cache already. Just what I was thinking. PS: ls -l on my machine doesn't truncate the user name. Cheers Monte ___ use-revolution

Re: file owner group names

2010-08-18 Thread Andre Garzia
On Wed, Aug 18, 2010 at 2:07 AM, Jan Schenkel janschen...@yahoo.com wrote: The reason to avoid a shell call to stat is simple: calling it for each individual file in a big folder could prove an expensive operation, while a simple mapping method should suffice to convert 501 to janschenkel when

Re: file owner group names

2010-08-18 Thread Jan Schenkel
--- On Tue, 8/17/10, Monte Goulding mo...@sweattechnologies.com wrote: Thinking it over, we could build a caching mechanism and only fall back to stat if we don't have the id in our cache already. Just what I was thinking. PS: ls -l on my machine doesn't truncate the user name.

Re: file owner group names

2010-08-18 Thread Monte Goulding
Loving your work Jan and Andre. Cheers Monte On 18/08/2010, at 8:22 AM, Jan Schenkel wrote: Hi Monte et al, What I sent earlier is only a partial solution. At work I only had our Solaris server to play with; but once I got home, I found things on MacOS X to be more complicated. See:

file owner group names

2010-08-17 Thread Monte Goulding
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___

Re: file owner group names

2010-08-17 Thread Jan Schenkel
) --- On Tue, 8/17/10, Monte Goulding mo...@sweattechnologies.com wrote: From: Monte Goulding mo...@sweattechnologies.com Subject: file owner group names To: How to use Revolution use-revolution@lists.runrev.com Date: Tuesday, August 17, 2010, 4:58 AM Hi I'm wondering if there is a way to translate

Re: file owner group names

2010-08-17 Thread Monte Goulding
, we grow both wiser and more foolish at the same time. (La Rochefoucauld) --- On Tue, 8/17/10, Monte Goulding mo...@sweattechnologies.com wrote: From: Monte Goulding mo...@sweattechnologies.com Subject: file owner group names To: How to use Revolution use-revolution@lists.runrev.com

Re: file owner group names

2010-08-17 Thread Jan Schenkel
Hi Monte et al, What I sent earlier is only a partial solution. At work I only had our Solaris server to play with; but once I got home, I found things on MacOS X to be more complicated. See: http://quartam.blogspot.com/2010/08/fun-with-detailed-files.html Unfortunately we're not there yet for

Re: file owner group names

2010-08-17 Thread Andre Garzia
On Tue, Aug 17, 2010 at 7:22 PM, Jan Schenkel janschen...@yahoo.com wrote: Hi Monte et al, What I sent earlier is only a partial solution. At work I only had our Solaris server to play with; but once I got home, I found things on MacOS X to be more complicated. See:

Re: file owner group names

2010-08-17 Thread Jan Schenkel
--- On Tue, 8/17/10, Andre Garzia an...@andregarzia.com wrote: On Tue, Aug 17, 2010 at 7:22 PM, Jan Schenkel janschen...@yahoo.com wrote: Hi Monte et al, What I sent earlier is only a partial solution. At work I only had our Solaris server to play with; but once I got home, I found

Re: file owner group names

2010-08-17 Thread Jan Schenkel
--- On Tue, 8/17/10, I wrote before my first mug of coffee: --- On Tue, 8/17/10, Andre Garzia an...@andregarzia.com wrote: Why not use shell(stat the file) to acquire the information? Hi Andre, It looks like stat has the advantage over ls -l when it comes to displaying the