delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/07/17/17:27:30

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <18517238.post@talk.nabble.com>
Date: Thu, 17 Jul 2008 14:26:56 -0700 (PDT)
From: akarui <akarui DOT tomodachi AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: How to run a bash shell script from cygwin console
In-Reply-To: <18517222.post@talk.nabble.com>
MIME-Version: 1.0
X-Nabble-From: akarui DOT tomodachi AT gmail DOT com
References: <18515908 DOT post AT talk DOT nabble DOT com> <487F9BCB DOT 8010806 AT sbcglobal DOT net> <18516861 DOT post AT talk DOT nabble DOT com> <20080717202137 DOT GA891 AT ednor DOT casa DOT cgf DOT cx> <18517222 DOT post AT talk DOT nabble DOT com>
X-IsSubscribed: yes
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

Now, I have new issue after adding a line ("cd") in the script. New script
looks like as below:
/****************
#!/bin/bash
cd "c:\Program Files\eviware\soapUI-Pro-2.0.3\bin"    #This is mount-mapped
as "/soapui"
pwd
ls
****************/

The output I get on the cygwin console is as follow:
/****************
$ ./runRWS.sh
/soapui
Project_Exercise18     alltests-fails.html  mockservicerunner.bat 
soapui-errors.log     soapui.log
actions                ext                  overview-frame.html   
soapui-log4j.xml      stylesheet.css
all-tests.html         index.html           overview-summary.html 
soapui-pro-2.0.3.jar  testrunner.bat
allclasses-frame.html  listeners            report.xml            
soapui-pro.bat        toolrunner.bat
alltests-errors.html   loadtestrunner.bat   scripts               
soapui-settings.xml
****************/

Here from the output, I see that "cd", "pwd" and "ls" worked fine. But the
console prompt is not yet changed, means, "cd" didn't permanently changed
the directory, 'cause I get "pwd" as below:
/****************
$ pwd
/cygdrive/d
****************/

Note that, I like to have the console's prompt changed to "/soapui", where
I'll run a program named "testrunner.bat" later.

Please help me.


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