Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <426DB60B.9090004@awcubed.com>
Date: Mon, 25 Apr 2005 23:31:23 -0400
From: Archie Warnock <warnock@awcubed.com>
Organization: A/WWW Enterprises
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
MIME-Version: 1.0
To: =?ISO-8859-1?Q?Ren=E9_Berber?= <rberber@prodigy.net.mx>
Cc: cygwin@cygwin.com
Subject: Re: system() fails on pristine Windows systems
References: <426D5CAB.2070804@awcubed.com> <d4jrnk$hkk$1@sea.gmane.org>
In-Reply-To: <d4jrnk$hkk$1@sea.gmane.org>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-IsSubscribed: yes

René Berber wrote:
> Yes, you are missing something really simple... have you seen the man
> page for system()?  Of course not, "Use  `system'  to pass a command
> string `*S' to `/bin/sh'..."

Hmmm...  you're right.  Thanks.  I was hoping the mention of /bin/sh was
more figurative - ie, just _a_ command interpreter.  Guess not, eh?

So, what would be the right way to call an external program from a
Cygwin program without installing Cygwin, if not system()?

I also find it somewhat puzzling that it works on my development
machines even though /bin/sh isn't anywhere along in the path of the
Windows command shell.

-- 
Archie

-- Archie Warnock                       Internet: warnock@awcubed.com
-- A/WWW Enterprises                    http://www.awcubed.com
--       As a matter of fact, I _do_ speak for my employer.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

