Thread view

Hi All,
I have a directory full of (non-Msys) command line development tools - some
of which overlap the tools provided Msys (grep, make, etc). For the project
I am working on, I am required to use these (other) tools, but I'd like to
do it from within the BASH shell provided by Msys. The problem is, every
time I try to run *any* of these tools from within the Msys BASH shell, I
get a "Permission denied" error (I am cd'ing into the directory containing
the tool and doing a "./<tool.exe>"). If, on the other hand, I open a DOS
shell, cd to the same directory, and run the tool - all works as expected.
Any idea why the tools won't run from within the Msys BASH shell?
I've copied other executables into the directory in question (like
wordpad.exe), and they've run correctly - which seems to eliminate any weird
permission problems on the directory tree.
MSYS 1.0.1.0 / WinXP Professional
Thanks for any input.
Jeff Godfrey

What dll's exist in your tools directory?
Do the commands work when not in the tools directory?
Earnie.
Jeff Godfrey wrote:
> Hi All,
>
> I have a directory full of (non-Msys) command line development tools - some
> of which overlap the tools provided Msys (grep, make, etc). For the project
> I am working on, I am required to use these (other) tools, but I'd like to
> do it from within the BASH shell provided by Msys. The problem is, every
> time I try to run *any* of these tools from within the Msys BASH shell, I
> get a "Permission denied" error (I am cd'ing into the directory containing
> the tool and doing a "./<tool.exe>"). If, on the other hand, I open a DOS
> shell, cd to the same directory, and run the tool - all works as expected.
> Any idea why the tools won't run from within the Msys BASH shell?
>
> I've copied other executables into the directory in question (like
> wordpad.exe), and they've run correctly - which seems to eliminate any weird
> permission problems on the directory tree.
>
> MSYS 1.0.1.0 / WinXP Professional
>
> Thanks for any input.
>
> Jeff Godfrey
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: IBM Linux Tutorials.
> Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
> Free Linux Tutorials. Learn everything from the bash shell to sys admin.
> Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
> _______________________________________________
> Mingw-msys mailing list
> Mingw-msys@...
> https://lists.sourceforge.net/lists/listinfo/mingw-msys
>
--
http://www.mingw.org
<http://sourceforge.net/projects/mingw&gt;

----- Original Message -----
From: "Earnie Boyd" <earnie@...>
To: <mingw-msys@...>
Sent: Monday, December 22, 2003 9:04 AM
Subject: Re: [Mingw-msys] Permission Denied Error
> These appear to be 16bit dos programs.
>
> Does ``cmd //c 386link'' execute the command?
Earnie - yes, it does. So, is this the "correct" way to run these programs
from the Msys BASH shell?
If so, how would the following DOS line translate?
c:\F77L3\bin\make.exe comp=msoft32
I tried this:
cmd //c /c/F77L3/bin/make.exe comp=msoft32
but it doesn't seem to quite work as expected. It's almost like the
"comp=..." argument is not getting through correctly...
Basically, I'm trying to put together a BASH script to replicate the above
DOS line (among other things).
Any other advice appreciated.
Thanks,
Jeff

What version of MSYS?
Jeff Godfrey wrote:
> ----- Original Message -----
> From: "Earnie Boyd" <earnie@...>
> To: <mingw-msys@...>
> Sent: Monday, December 22, 2003 9:04 AM
> Subject: Re: [Mingw-msys] Permission Denied Error
>
>
>
>>These appear to be 16bit dos programs.
>>
>>Does ``cmd //c 386link'' execute the command?
>
>
> Earnie - yes, it does. So, is this the "correct" way to run these programs
> from the Msys BASH shell?
>
> If so, how would the following DOS line translate?
>
> c:\F77L3\bin\make.exe comp=msoft32
>
> I tried this:
>
> cmd //c /c/F77L3/bin/make.exe comp=msoft32
>
> but it doesn't seem to quite work as expected. It's almost like the
> "comp=..." argument is not getting through correctly...
>
Using my regression binary I see
<stdio>
$ ./mingw32-echo.exe comp=msoft32
comp=msoft32
</stdio>
So it should work.
> Basically, I'm trying to put together a BASH script to replicate the above
> DOS line (among other things).
>
> Any other advice appreciated.
>
So, what I'll suggest if you get it working is to create a script or
scripts to execute the binaries.
<script name="/usr/local/bin/f77l3-make">
#!/bin/sh
cmd //c c://F77L3/bin/make.exe "$@"
</script>
Then you would do ``f77l3-make comp=msoft32''.
Earnie
--
http://www.mingw.org
<http://sourceforge.net/projects/mingw&gt;

Jeff Godfrey wrote:
>
> 1.0.10
>
Describe the problems? I don't see that it should be a problem. You
may need to create an executable with your compiler/linker that dumps
the arguments as they were received to determine the differences.
Earnie.
--
http://www.mingw.org
<http://sourceforge.net/projects/mingw&gt;