delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/01/23/05:29:58

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 <rcsaba AT gmail DOT com>
To: cygwin AT cygwin DOT com
Cc: brw314 AT gmail DOT com
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019