This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: bash script error


On Sat, Jan 23, 2010 at 8:23 AM, brian <@gmail.com> wrote:
> Hi,
>
> I am trying to run a script in cygwin,and keep getting this error.Both of
> these files exist (bash.exe) and user has 777 permissions.
>
> $ bin/run.sh
> : /bin/bash: /usr/local/x-daemon.sh: No such file or directory

There are three players here: bash, bin/run.sh and /usr/local/x-daemon.sh
Perhaps bin/run.sh tries to start /usr/local/x-daemon.sh and that doesn't exist.

Run your script with

/bin/bash -x bin/run.sh

It will print out everything it does. Then try to make sense of the output :)

-- 
Life is complex, with real and imaginary parts

--
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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]