delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/07/17/15:17:46

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <18515908.post@talk.nabble.com>
Date: Thu, 17 Jul 2008 12:17:10 -0700 (PDT)
From: akarui <akarui DOT tomodachi AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: How to run a bash shell script from cygwin coosole
MIME-Version: 1.0
X-Nabble-From: akarui DOT tomodachi AT gmail DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

I have a very simple bash script named runRWS.sh:
/************
#!/bin/bash
cd /soapui
ls
pwd
************/

When I run from cygwin console, , I get:
/************
user1 AT INNO-CNU75109V7 /usr/bin
$ ./runRWS.sh
: No such file or directoryoapui
./runRWS.sh: line 3: $'ls\r': command not found
/usr/bin
************/

I could see that command "cd", "ls" didn't work, but "pwd" was ok.

I have directories mounted as below:
/*************
$ mount
c:\Program Files\eviware\soapUI-Pro-2.0.3\bin on /soapui type system
(binmode)
d:\cygwin\bin on /usr/bin type system (binmode)
d:\cygwin\lib on /usr/lib type system (binmode)
d:\cygwin on / type system (binmode)
c: on /cygdrive/c type system (binmode,noumount)
d: on /cygdrive/d type system (binmode,noumount)
g: on /cygdrive/g type system (binmode,noumount)
h: on /cygdrive/h type system (binmode,noumount)
m: on /cygdrive/m type system (binmode,noumount)
r: on /cygdrive/r type system (binmode,noumount)
**************/

Please help me how to run the bash script on cygwin. Note, I am a new user
of cygwin.

-- 
View this message in context: http://www.nabble.com/How-to-run-a-bash-shell-script-from-cygwin-coosole-tp18515908p18515908.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
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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