This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Problem with system()


Chris Faylor <cgf@cygnus.com>
07/27/00 09:48 AM
Please respond to cygwin

 
        To:     cygwin@sources.redhat.com
        cc:     Glenn.Davis@predictive.com
        Subject:        Re: Problem with system()


>On Thu, Jul 27, 2000 at 09:42:19AM -0400, Glenn.Davis@predictive.com 
wrote:
>>Chris,
>>I guesss I should have given more info.
>>I tried
>>        system ("command /c dir")
>>and yes, I am using Windows 95.
>
>I don't know what's wrong but I would check basic things like your PATH.
>If you don't have a command.com in your path then system is obviously
>not going to be able to run "command".

I know I don't sound like I know what I am doing, but I did look at my 
Path.  I am able to run commands from inside bash. I even put the full 
path of the commands in the system call. I still get the same results.

>>In fact I tried a whole bunch of commands that are cygwin commands.
>>Whatever I do, the system call returns a 127.
>
>"File not found".

thanks.

>
>>I couldn't find what a 127 meant, if anything.
>>Anyway, is it possible that I can be missing a dll. Or is there only the
>>one that I need?
>>I only installed the base amount of software:
>>        gcc-2_95_2-2.tar.gz
>>        cygwin-1.1.2.tar.gz
>>        binutils-20000625.tar.gz
>>        bash-2_04_1.tar.gz
>>I thought that should be enough but maybe not.
>>Also, since I am only getting the digest version of this mailing list,
>>can you cc: me directly?
>
>I don't know what cygwin commands you could be running if you only
>installed "the base amount of software".  Certainly you couldn't run
>'ls' if you didn't install it.

You are right, I did not realize that the binutils did not have a set of 
commands. It turns out that I was running commands that came with an old 
version of the MKS toolkit that I had in my path. So I installed some 
other cygwin utils.  I tried to run size and ps among others. However, I 
just realized, shouldn't I be able to run any command whether it was a 
cygwin command or not as long as it was in my path? 

>
>>Also, since I am only getting the digest version of this mailing list, 
can
>>you cc: me directly?
>
>Sure, as long as you stop Cc'ing me directly.  I read the cygwin mailing
>list.  There is no reason to get two copies.

sorry about cc'ing you directly. Won't happen again.

>
>cgf

Thanks for all of your suggestions. This is driving me crazy!!
glenn davis.

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]