This is the mail archive of the
mailing list for the Cygwin project.
Calling Cygwin from Dos - problem with sub program
- From: nlian <norliansyah at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 17 Apr 2008 20:58:52 -0700 (PDT)
- Subject: Calling Cygwin from Dos - problem with sub program
I have a bash script (e.g. test.sh), and I have the following command
inside the script:
#include functions from functions.library file
#Using logmsg function:
logmsg "This is the beginning"
When I ran from cygwin, I got no error when executing the shell script
(test.sh), all OK.
However when I execute from dos, I got an error:
functions.library: No such file or directory
logmsg: command not found
Here is my dos script, test.cmd:
bash --login -c '/cygdrive/d/Batch/prod/prog/scripts/test.sh'
Any idea what's missing / went wrong?
View this message in context: http://www.nabble.com/Calling-Cygwin-from-Dos---problem-with-sub-program-tp16760067p16760067.html
Sent from the Cygwin list mailing list archive at Nabble.com.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html