Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com From: jalonso AT mit DOT edu Message-ID: <1026286331.3d2be2fb08435@webmail.mit.edu> Date: Wed, 10 Jul 2002 03:32:11 -0400 To: Bernardet Karim Cc: cygwin AT cygwin DOT com Subject: Re: system References: <200207100730 DOT JAA11241 AT loup DOT inln DOT cnrs DOT fr> In-Reply-To: <200207100730.JAA11241@loup.inln.cnrs.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.1-cvs X-Originating-IP: 210.145.52.118 X-Originating-Host: pc6.camk-unet.ocn.ne.jp X-MIT-WebMail-Sender: X-MIT-WebMail-User-Browser: Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt) Hello, The "system" call works through the use of /bin/sh (without the absolute path specification), so "sh" must be in your path for "system" to work. Someone please correct me if I'm wrong. If this is in fact the problem, then you must have copied cygwin1.dll to someplace in your path and not add /bin to your path. At least on the Cygwin installation I'm using at the moment, -mno-cygwin will result in the printf- only behavior. I hope this helps. Jason Alonso Quoting Bernardet Karim : > Hello ! > > When I compile the code below under cygwin, all is ok when i run it in = > the > cygwin shell, but if i run it in a MSDOS console I just have the result = > of > the printf .... > > .... > { > system("c:/tempo/cygwin/bin/ls c:/tempo "); > printf("c:/tempo/cygwin/bin/ls c:/tempo "); > } > > Thanks for your help ... > > > > > -- > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > Bug reporting: http://cygwin.com/bugs.html > Documentation: http://cygwin.com/docs.html > FAQ: http://cygwin.com/faq/ > > -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/