delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/08/07/16:18:05

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
From: Chris Faylor <cgf AT cygnus DOT com>
Date: Mon, 7 Aug 2000 16:15:43 -0400
To: cygwin AT sourceware DOT cygnus DOT com
Subject: Re: System call
Message-ID: <20000807161543.G12330@cygnus.com>
Reply-To: cygwin AT sources DOT redhat DOT com
Mail-Followup-To: cygwin AT sourceware DOT cygnus DOT com
References: <F68EqPeQ1qV94h4Jzgi0000240a AT hotmail DOT com> <200008071421 DOT KAA02793 AT envy DOT delorie DOT com>
Mime-Version: 1.0
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 AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019