This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
B20: Problems exectuing scripts with .exe extensions
- To: "'cygwin at sourceware dot cygnus dot com'" <cygwin at sourceware dot cygnus dot com>
- Subject: B20: Problems exectuing scripts with .exe extensions
- From: Matthew Lowther <m dot lowther at bssl dot co dot uk>
- Date: Wed, 16 Feb 2000 10:28:24 -0000
Hi cygwin list,
I've been trying bash B20 on NT 4.0, version
GNU bash, version 2.02.1(2)-release (i586-pc-cygwin32)
Copyright 1998 Free Software Foundation, Inc.
And I have problems exectuing scripts that have .exe extensions from the
command line, where as the same script without the .exe extension will work
fine.
If I write a script as follows
#!/bin/sh
ls -l
ls
echo "test finished"
Firstly I'm running these scripts from an rxvt session.
I have the same file as two names test.exe and test2
The following happens
Command:
./test.exe
Result:
sh: ./test.exe: Permission denied
Command:
./test2
Result
total 10
-rw-r--r-- 1 administ everyone 12632 Feb 16 10:10 cygcheck.out
-rwxr-xr-x 1 administ everyone 29 Feb 16 09:39 maff
-rwxr-xr-x 1 administ everyone 33 Feb 16 10:18 test.exe
-rwxr-xr-x 1 administ everyone 33 Feb 16 10:18 test2
cygcheck.out maff test.exe test2
maff
Command:
./test
Result:
sh: ./test: Permission denied
If I run the scripts using sh ( ie sh test.exe or sh test2 ) then they both
work fine.
If I run the scripts from a telnet session then test.exe will hang ( and use
lots of CPU in the NTVDM.EXE process ), whereas test2 works fine.
The reason why I want to run files with .exe extensions as scripts is
because we build projects using gnumake and bash, and in the past we have
only managed to get bash to execute scripts properly if they had a .exe
extension.
Also the above problem did not occur on version B19, which we run on our
other machines.
I will attach the cvscheck output.
Maff.
<<cygcheck.out>>
--
Lowther, M S Direct Dial: +44 (0)1252 401033
Software Consultant Switchboard: +44 (0)1252 401000
Berkeley Software Services Ltd Fax : +44 (0)1252 336934
http://www.bssl.co.uk mailto:maff@bssl.co.uk
cygcheck.out
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com