Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Date: Wed, 08 Nov 2000 16:50:18 -0800 From: Jeffrey Gruen Subject: Re: Problem Executing Scripts To: cygwin AT sourceware DOT cygnus DOT com Cc: gruen DOT lab AT yale DOT edu Reply-to: gruen DOT lab AT yale DOT edu Message-id: <3A09F4CA.9D4C85BC@yale.edu> MIME-version: 1.0 X-Mailer: Mozilla 4.61 (Macintosh; I; PPC) Content-type: text/plain; x-mac-creator=4D4F5353; x-mac-type=54455854; charset=us-ascii Content-transfer-encoding: 7bit X-Accept-Language: en Recently, I downloaded Cygwin-b20 (cygwin-1.1.4.tar) for WindowsNT. It has been working just fine until today when we tried to write some very simple scripts to run. Below is one such script that runs beautifully on a dec alpha UNIX machine, but will not run in Cygwin for NT: #this little script makes back-up of files in a directory for file in * do cp $file $file.bak done So far, we have discovered: 1. How to make the file executable in Cygwin (by adding .exe to the end, since "chmod" does not seem to work very well) 2. That the "*.exe" file must to be in the bin folder in order to run 3. That bash crashes if we make the first line of the script "#!/bin/sh" (We even tried running: "echo '#!/bin/sh' > script.exe; ./script", but this did not work either). Please help. How can a make a script file that runs flawlessly in UNIX run in Cygwin, as well. The ability to write and execute small scripts like this would save me much time! Thanks, Deborah -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com