Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com From: Chris Faylor 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: <200008071421 DOT KAA02793 AT envy DOT delorie DOT 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 AT sourceware DOT cygnus DOT com