delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/07/10/17:34:29

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <003f01c22859$8c16cca0$33500f50@oemcomputer>
From: "Karim" <bernardet DOT karim AT wanadoo DOT fr>
To: <cygwin AT cygwin DOT com>
References: <200207100730 DOT JAA11241 AT loup DOT inln DOT cnrs DOT fr> <1026286331 DOT 3d2be2fb08435 AT webmail DOT mit DOT edu>
Subject: Re: system
Date: Wed, 10 Jul 2002 23:34:18 +0200
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400

----- Original Message -----
From: <jalonso AT mit DOT edu>
To: "Bernardet Karim" <Karim DOT Bernardet AT inln DOT cnrs DOT fr>
Cc: <cygwin AT cygwin DOT com>
Sent: Wednesday, July 10, 2002 9:32 AM
Subject: Re: system


> 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 <Karim DOT Bernardet AT inln DOT cnrs DOT fr>:
>
> > 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/
> >
> >
>
>
>

First, thanks a lot for your help

using -mno-cygwin with gcc, system("c:\\tempo\\cygwin\\bin\\ls ") works in a
MSDOS shell
but without -mno-cygwin and if I copy cygwin1.dll in c:\windows\system, it
doesn t work in a MSDOS shell

i could use -mno-cygwin but in the  case i have to use winsock :((

Karim.





--
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/

- Raw text -


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