[NTLUG:Discuss] Listing file permissions in "chmod format"

Robert Citek robert.citek at gmail.com
Fri Apr 16 00:17:50 CDT 2010


On Fri, Apr 16, 2010 at 12:42 AM, Ben Weatherall <BWeatherall at pdxinc.com> wrote:
> It sounds like you will be using grep, tr, cut and maybe other commands from within your script. You did not say if they were all on the same H/W platform type, but be aware that not only the command options, but the available shells also differ across platforms.
>
> Scripter beware...

Ben brings up a good point.  If the environments differ so drastically
that different command options may or may not be present, then your
best bet may be to insist that everything has the same version of perl
(or python or ruby or your language of choice).  Otherwise, scripting
this in a shell is going to be painful.

Regards,
- Robert



More information about the Discuss mailing list