Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 47728 invoked from network); 28 Sep 2007 02:01:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Sep 2007 02:01:47 -0000 Received: (qmail 685 invoked by uid 500); 28 Sep 2007 02:01:36 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 612 invoked by uid 500); 28 Sep 2007 02:01:36 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 601 invoked by uid 99); 28 Sep 2007 02:01:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Sep 2007 19:01:36 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [68.230.240.46] (HELO eastrmmtao104.cox.net) (68.230.240.46) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Sep 2007 02:01:34 +0000 Received: from eastrmimpo01.cox.net ([68.1.16.119]) by eastrmmtao104.cox.net (InterMail vM.7.08.02.01 201-2186-121-102-20070209) with ESMTP id <20070928020112.NSKB2036.eastrmmtao104.cox.net@eastrmimpo01.cox.net> for ; Thu, 27 Sep 2007 22:01:12 -0400 Received: from mybook.local ([24.255.120.190]) by eastrmimpo01.cox.net with bizsmtp id te1B1X00U46aSr40000000; Thu, 27 Sep 2007 22:01:11 -0400 Message-ID: <46FC6032.70200@reverycodes.com> Date: Thu, 27 Sep 2007 22:00:18 -0400 From: Vadim Gritsenko User-Agent: Thunderbird 2.0.0.6 (Macintosh/20070728) MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: Javadocs References: <46EF87E1.5050308@tuffmail.com> <46F22B4D.9000504@apache.org> <46F23A8E.1070808@apache.org> <46F26B2E.2080005@reverycodes.com> <46F26E61.2020609@apache.org> <46F28E12.7000608@reverycodes.com> <46F29076.6060609@apache.org> <46F3C489.8050109@reverycodes.com> <46FC2777.5010904@apache.org> <46FC2FDB.9020903@reverycodes.com> <46FC345A.6060107@apache.org> In-Reply-To: <46FC345A.6060107@apache.org> Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Reinhard Poetz wrote: > But now I run into another problem: When I use the find/xargs command, > the working directory is the directory where I entered this command and > not the directory where the create-apidocs.sh script is located. Is > there a way to set the working directory the way I have expected it? Yep. Put this script say in your home dir, name it 'x.sh' and make it executable: #!/bin/sh cd `dirname $1` # Both "sh $1" and ". $1" should work . $1 From your home dir (where x.sh is): find /x1/www/cocoon.apache.org/2.2 -name "create-apidocs.sh" | grep apidocs/ | xargs -n 1 ./x.sh Alternatively you can put cd `dirname $1` in each of create-apidocs.sh but I figured you'd want to avoid this :) Vadim