X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: <4B5AA3EB.30201@gmail.com> References: <4B5AA3EB DOT 30201 AT gmail DOT com> Date: Sat, 23 Jan 2010 11:29:42 +0100 Message-ID: <1ef5a52f1001230229u4b522356m7c26959efa103ee7@mail.gmail.com> Subject: Re: bash script error From: Csaba Raduly To: cygwin AT cygwin DOT com Cc: brw314 AT gmail DOT com Content-Type: text/plain; charset=ISO-8859-1 Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 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