Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
From: Chris Faylor <cgf@cygnus.com>
Date: Thu, 27 Jul 2000 11:09:46 -0400
To: cygwin@sources.redhat.com
Subject: Re: Problem with system()
Message-ID: <20000727110946.A3754@cygnus.com>
Reply-To: cygwin@sources.redhat.com
Mail-Followup-To: cygwin@sources.redhat.com
References: <OFEB57585D.87A9F813-ON85256929.0051CAE4@predictive.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2i
In-Reply-To: <OFEB57585D.87A9F813-ON85256929.0051CAE4@predictive.com>; from Glenn.Davis@predictive.com on Thu, Jul 27, 2000 at 11:04:22AM -0400

On Thu, Jul 27, 2000 at 11:04:22AM -0400, Glenn.Davis@predictive.com wrote:
>>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.

It finally dawned on me that since you haven't installed the complete
cygwin package you probably don't have /bin/sh.  UNIX uses /bin/sh
to invoke programs for the system() command.  Ditto, cygwin.

That program is found in the 'ash' tar ball.

cgf

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

