X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Message-ID: <92af9b620710022153u1d56488erbc58010cc56ad9ef@mail.gmail.com> Date: Tue, 2 Oct 2007 21:53:13 -0700 From: "Alexey Illarionov" To: cygwin AT cygwin DOT com Subject: newbie question -- problem with launching shell script files MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Google-Sender-Auth: 25b5d4f63df610fb X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Hello, I have just installed cygwin using setup.exe and know almost nothing about it. I made no changes in any configuration files and launch my cygwin session just by starting the unchanged 'cygwin.bat' file. I wrote a small script. Here is the content of the 'run.sh' #!/bin/sh cd /cygdrive/c Unfortunately, it does not work. The command './run.sh' does nothing. I found in FAQ that the problem is not new, but I'm not sure that I understand correctly the way to overcome it. There are two possible sources of this problem as it is wrote in FAQ. 1. Bash does not understand that it is executable file. This should be fixed by first line of my script '#!/bin/sh' 2. Some problems with chmod. I don't really understand what I should do in this case, but it looks like this is not the case because 'chmod +x run.sh' works fine. I would really appreciate if anyone could help to deal with this problem. -- Best regards, Alexey A. Illarionov -- Best regards, Alexey A. Illarionov -- 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/