B20: Problems exectuing scripts with .exe extensions
Matthew Lowther
m.lowther@bssl.co.uk
Wed Feb 16 02:28:00 GMT 2000
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygcheck.out
Type: application/octet-stream
Size: 12633 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20000216/a6ef397d/attachment.obj>
More information about the Cygwin
mailing list