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: Mon, 7 Aug 2000 16:15:43 -0400
To: cygwin@sourceware.cygnus.com
Subject: Re: System call
Message-ID: <20000807161543.G12330@cygnus.com>
Reply-To: cygwin@sources.redhat.com
Mail-Followup-To: cygwin@sourceware.cygnus.com
References: <F68EqPeQ1qV94h4Jzgi0000240a@hotmail.com> <200008071421.KAA02793@envy.delorie.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.3.6i
In-Reply-To: <200008071421.KAA02793@envy.delorie.com>; from dj@delorie.com on Mon, Aug 07, 2000 at 10:21:22AM -0400

On Mon, Aug 07, 2000 at 10:21:22AM -0400, DJ Delorie wrote:
>>   errno=system("dir");
>
>There is no program called "dir" anywhere on your computer.  No
>dir.exe, no dir.com.  Only the command shell knows how to run "dir"
>(and other built-ins).  So, if you want to do a "dir" you must tell
>the command shell to do it, either with system("cmd /c dir") or system
>("command /c dir").

Also, make sure that you have a "/bin/sh" on your system.

The system() function uses /bin/sh to run programs.

cgf

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

