[Gllug] OT: Tomcat & Apache mapping problem

Rich Walker rw at shadow.org.uk
Thu Mar 24 15:46:12 UTC 2005


Bruce Richardson <itsbruce at uklinux.net> writes:

> On Wed, Mar 23, 2005 at 05:17:44PM +0000, Mike wrote:
>> 
>> Ah, but I like cats :-). Actually, there are lots of things I learnt how
>> to do one way, and then subsequently found a "more efficient" way of
>> doing same later.
>
> When it comes to the avoidance of cat, those ironic quotes are not
> merited.  Cutting out needless use of cat will make a big difference to
> the load that your shell scripts will impose on a system.  Stylistic
> conventions are one thing but when your habits enshrine bad practice and
> you know it, it really is time to learn better habits.

I believe this should be followed with:

The -exec option to find is for use in emergencies only. Normally, you
want find ... | xargs ... : which will only start 3 processes, rather
than 1 per file...

(yes, I have brought my machine to a grinding halt with the use of
find...)

cheers, Rich.

-- 
rich walker         |  Shadow Robot Company | rw at shadow.org.uk
technical director     251 Liverpool Road   |
need a Hand?           London  N1 1LX       | +UK 20 7700 2487
www.shadow.org.uk/products/newhand.shtml
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list