delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/10/24/13:36:27

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Bill <bill DOT turner AT changent DOT com>
Subject: command not found2: pwd and other errors
Date: Tue, 24 Oct 2006 14:54:40 +0000 (UTC)
Lines: 56
Message-ID: <loom.20061024T165156-382@post.gmane.org>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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

Hi All,

I am no expert with cygwin and unix, though I use cygwin a lot while
developing software. I have been developing for one of my clients on my
local machine and now am trying to replicate my development environment
on one of their machines. Everything seems okay until I try to run a
shell script, which worked just fine on my machine. It is an extremely
basic script launching a java app. Here are the results:

<copy=console>

/home/bturner/rjmdental/bin>sh powerpick.sh
: command not found2: pwd
/home/bturner
: No such file or directoryhome/bturner
: No such file or directoryjmdental
: command not found7:
Unable to access jarfile jar/powerpick.jar
/home/bturner/rjmdental/bin>

</copy>

Here is the script (this is not the exact original, I tried a couple
things to see if I could figure out what is going on):

<copy=editor>

#!/usr/bin/bash
pwd
echo ${HOME}
cd ${HOME}
cd rjmdental
export CLASSPATH=

${JAVA_HOME}/bin/java -jar jar/powerpick.jar

</copy>

NOTE: the pwd command and the cd commands work fine when at that command line. I
cannot see what could possible be wrong. I don't understand why the
pwd command is not found, nor can I understand why the cd command seems
to drop the leading /.

I had copied my whole project from my machine to the client machine,
after installing cygwin. I did change the .passwd file in /etc so that
I was pointed to the correct directory, I have a different username on
this machine. I also changed other instances of my old user id to my
new user id.

I've tried googling for answers, including this usergroup, but cannot
seem to find anything related to my problems. If any of you have any
ideas, I'd surely appreciate a response!

TIA,

Bill 


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