Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sourceware.cygnus.com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin@sourceware.cygnus.com>
List-Help: <mailto:cygwin-help@sourceware.cygnus.com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner@sourceware.cygnus.com
Delivered-To: mailing list cygwin@sourceware.cygnus.com
Date: 17 Mar 2000 21:02:00 +0200
From: mh@mike.franken.de (Michael Hirmke)
To: cygwin@sourceware.cygnus.com
Message-ID: <7a2vJIn$pfB@mike.franken.de>
In-Reply-To: <38D14B06.971AA66B@gmx.de>
Subject: Re: g++: Problem with system()
X-Mailer: CrossPoint v3.12d R/C9763
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Organization: Kommunikationsnetz Franken e.V. (Nuernberg)
x-copyright: All rights reserved. Unauthorized copying, forwarding or publishing prohibited.
x-irc-nick: nobanzai
x-no-archive: yes

Hi Martin,

>Hello,
>
>I have a program that calls programs with system(). It also prints out
>what it wants to execute. Compiled with linux gcc everything works fine.
>But the executable compiled with cygwin has a problem: It only works
>when executed in the windows bash. Executed in a DOS-Box it only writes
>what he wants to exec but doesn't do anything even if I only call
>something simple like "echo ...". In Windows 95 this "doing nothing"

echo is a builtin command of command.com on Win9x and cmd.exe on
NT4/W2K, so you can't just call it with the system command.
In a bash window the situation is different - even though echo is a
shell builtin, the calling bash can run it. Besides that, there is an
external program named echo.exe, too.
If you want to test your program use something like "notepad", which can
be found through $PATH on all WinXX systems.

>even takes a lot of time but in Windows 98 and NT4 it is very quick.
>
>thank you for help
>
>Martin Trautmann

Bye.
Michael.
-- 
Michael Hirmke           | Telefon +49 (911) 557999
Georg-Strobel-Strasse 81 | FAX     +49 (911) 557664
90489 Nuernberg          | E-Mail  mailto:mh@mike.franken.de
                         | WWW     http://aquarius.franken.de/

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

