From owner-freebsd-questions Tue Jul 4 9:38:12 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mta01-svc.server.ntlworld.com (mta01-svc.ntlworld.com [62.253.162.41]) by hub.freebsd.org (Postfix) with ESMTP id 5892037BA69 for ; Tue, 4 Jul 2000 09:38:07 -0700 (PDT) (envelope-from mark@ukug.uk.freebsd.org) Received: from parish.my.domain ([62.253.90.105]) by mta01-svc.server.ntlworld.com (InterMail vM.4.01.02.27 201-229-119-110) with ESMTP id <20000704163805.IUNJ381.mta01-svc.server.ntlworld.com@parish.my.domain>; Tue, 4 Jul 2000 17:38:05 +0100 Received: (from mark@localhost) by parish.my.domain (8.9.3/8.9.3) id RAA01876; Tue, 4 Jul 2000 17:37:45 +0100 (BST) (envelope-from mark) Date: Tue, 4 Jul 2000 17:37:45 +0100 From: Mark Ovens To: Christoph Sold Cc: Willem Brown , Christoph Sold , FreeBSD-Questions@freebsd.org Subject: Re: find -exec Problem Message-ID: <20000704173745.D233@parish> References: <3960FC7A.4217804D@i-clue.de> <20000703225424.C15794@snoopy.brwn.org> <39610086.FC0AAEF6@i-clue.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <39610086.FC0AAEF6@i-clue.de>; from so@server.i-clue.de on Mon, Jul 03, 2000 at 11:07:18PM +0200 Organization: Total lack of Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Jul 03, 2000 at 11:07:18PM +0200, Christoph Sold wrote: > > > Willem Brown wrote: > > > > Hi, > > > > On Mon, Jul 03, 2000 at 10:50:02PM +0200, Christoph Sold wrote: > > > Maybe it's just me, but... could some helpful soul look at the > > > following: > > > > > > # uname -a > > > FreeBSD me.here.org 3.4-STABLE FreeBSD 3.4-STABLE #7: Thu Jun 22 > > > 14:30:20 CEST 2000 root@me.here.org:/usr/src/sys/compile/ME i386 > > > # find . -type d -print -exec 'chmod o+rx {}'; > > > > I think you should escape the semi-colon. This worked for me: > > > > find . -type d -print -exec ls -l {} \; > > # find . -type d -print -exec chmod o+rx {} \; > > Worked. Removed quotes from problem above... worked. Dunno why. > Because everything after ``-exec'' up to the ``\;'' is passed as *separate* args to exec(3). Using the single quotes made the whole thing into a single arg. > Thanks > -Christoph > > -- > i-clue GmbH, Endersbacher Str. 57, D-71334 Waiblingen > Fon: (0 71 51) 9 59 01-12, Fax: (0 71 51) 9 59 01-55 > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- If I buy a copy of WinDelete, and it doesn't delete Windows, am I entitled to my money back? ________________________________________________________________ FreeBSD - The Power To Serve http://www.freebsd.org My Webpage http://ukug.uk.freebsd.org/~mark/ mailto:mark@ukug.uk.freebsd.org http://www.radan.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message