X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; q=dns; s=default; b=t/DpKEe06eHePsiv8TcbV8zL1Kgmjqv+xiDDkhA3hGS V7qYLkUGUoUIEFVv1KGwPYH64sr9Yl83rSK0vQR98iXXaVGGA00osRWOlpWGXarO x8Iqp9fL9imtn0v28vsR002/bjY80EjUrnw0dVeQQXJBPwmw3cmd5wjMSY0c5XNs = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; s=default; bh=kpTNaDutgRDx1ZFnYjuikKsgy8Y=; b=itgTjoEt3yis0cex0 fl1cDokOlENEZ4K43m1hHwfhZpqIwUtqbcIiyZojZ03COaArAMYbCRtyE1y3cLDU G6GE9Muq1nXfBdfnYOyxQgSHASMagdwm0c3Jm6ks83MSOXH3WETWyugT4Xlcpk8q Aik5h8upodrP9AxnaThDkMpx7Q= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.4 required=5.0 tests=AWL,BAYES_05,RDNS_NONE autolearn=no version=3.3.2 X-HELO: m1plsmtpa01-03.prod.mesa1.secureserver.net Message-ID: <524217B5.6010803@codespunk.com> Date: Tue, 24 Sep 2013 18:52:37 -0400 From: "Matt D." User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Run bash script in cmd with cygwin References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Try adding this to your script: cd /cygdrive/d/path/to/dir;`for file.. Matt D. On 9/24/2013 5:43 PM, Ulrich Pogson wrote: > Hello > > I would like to run this script `for file in `find . -name "*.po"` ; > do msgfmt -o ${file/.po/.mo} $file ; done` in windows cmd. The script > need to run in a different folder. I have been able to run it though > cygwin but want to integrate it with another system where it will be > run through cmd. > > C:\cygwin\bin > D:\path\to\dir > > How can I do this? > > Thanks. > > -- > Problem reports: http://cygwin.com/problems.html > FAQ: http://cygwin.com/faq/ > Documentation: http://cygwin.com/docs.html > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > > > -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple