delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/11/08/16:45:08

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
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 <gruen DOT lab AT yale DOT edu>
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)
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019