Re: Run bash script in cmd with cygwin

2013-09-26 Thread Larry Hall (Cygwin)
On 9/25/2013 5:25 PM, Ulrich Pogson wrote: Thanks for your help I got it to work with this line. I: & cd I:\Work\GitHub\responsive\languages & c:\cygwin64\bin\bash -c \cygdrive\i\Work\GitHub\responsive\languages\potomo.sh ^^ Cygwin prefers P

Re: Run bash script in cmd with cygwin

2013-09-25 Thread Ulrich Pogson
Hi Andrey, I am sorry I don't fully understand. I am a beginner try to get something to work. What I am doing is that after pulling the .po I need to create a .mo file. https://github.com/AtelierConvivialite/webtranslateit/blob/master/examples/.wti#L11 On 25 September 2013 23:34, Andrey Repin wr

Re: Run bash script in cmd with cygwin

2013-09-25 Thread Ulrich Pogson
Thanks for your help I got it to work with this line. I: & cd I:\Work\GitHub\responsive\languages & c:\cygwin64\bin\bash -c \cygdrive\i\Work\GitHub\responsive\languages\potomo.sh and this file. https://gist.github.com/grappler/6704735 On 25 September 2013 19:16, Andrey Repin wrote: > Greetings,

Re: Run bash script in cmd with cygwin

2013-09-25 Thread Andrey Repin
Greetings, Ulrich Pogson! > I would like to run this script `for file in `find . -name "*.po"` ; > do msgfmt -o ${file/.po/.mo} $file ; done` in windows cmd. I think you mean "command line" and not a "script". This is not realistically possible. Windows CMD do not have as straightforward quoting

Re: Run bash script in cmd with cygwin

2013-09-25 Thread Warren Young
On 9/25/2013 00:33, Ulrich Pogson wrote: after try everything I could not get it to work. If my other post to this thread doesn't help, post the errors you get. You're making us guess what is wrong with "everything", and we don't know what's wrong with "everything". :) -- Problem reports:

Re: Run bash script in cmd with cygwin

2013-09-25 Thread Warren Young
On 9/24/2013 15:43, Ulrich Pogson wrote: I would like to run this script `for file in `find . -name "*.po"` ; do msgfmt -o ${file/.po/.mo} $file ; done` in windows cmd. What exactly do you mean by "in windows cmd"? If you're trying to translate this script into cmd.exe's "batch" language, it

Re: Run bash script in cmd with cygwin

2013-09-24 Thread Ulrich Pogson
Thanks Matt, after try everything I could not get it to work. Could you give me the whole code that I could enter in cmd that would run cygwin and then run the script? On 24 September 2013 23:43, Ulrich Pogson wrote: > Hello > > I would like to run this script `for file in `find . -name "*.po"` ;

Re: Run bash script in cmd with cygwin

2013-09-24 Thread Matt D.
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 differen

Run bash script in cmd with cygwin

2013-09-24 Thread Ulrich Pogson
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