Re: Calling Cygwin from Dos - problem with sub program

2008-04-22 Thread nlian
Hi Eric, You are genius! :) I change the path to use /cygdrive/d/ and it works! Cheers, Lian Eric Blake wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to nlian on 4/17/2008 9:58 PM: | Hi, | | I have a bash script (e.g. test.sh), and I have the following command

Calling Cygwin from Dos - problem with sub program

2008-04-17 Thread nlian
Hi, I have a bash script (e.g. test.sh), and I have the following command inside the script: #!/usr/bin/bash export PROG_LIB=D:\batch\prod\prog\lib export PATH=$PROG_LIB:$PATH #include functions from functions.library file . functions.library #Using logmsg function: logmsg This is the

Re: How to capture error in Cygwin, $? is not working

2008-03-16 Thread nlian
Hi Corinna all, Thanks for the advise. I got it! :) Cheers, Lian Corinna Vinschen-2 wrote: On Mar 12 23:09, nlian wrote: Hi, I want to write a simple script to start and stop windows service remotely. Here is the script: #!/usr/bin/bash sc servername start MyService