X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Bill Subject: command not found2: pwd and other errors Date: Tue, 24 Oct 2006 14:54:40 +0000 (UTC) Lines: 56 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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: 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 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: /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> 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): #!/usr/bin/bash pwd echo ${HOME} cd ${HOME} cd rjmdental export CLASSPATH= ${JAVA_HOME}/bin/java -jar jar/powerpick.jar 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/