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: <42243D77.EB6DD8DF@dessent.net>
Date: Tue, 01 Mar 2005 02:01:27 -0800
From: Brian Dessent <brian@dessent.net>
Organization: My own little world...
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: system call
References: <42235790.3070208@subnet142.com> <20050301095849.2242440d.gigy@freemail.it> <20050301090233.GT18314@cygbert.vinschen.de> <20050301103835.0084b49c.gigy@freemail.it>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Reply-To: cygwin@cygwin.com

Muzero wrote:
> 
> Thanks for your reply but it still do not work...
> the problem is thant under cygwin the execution of "dir" works fine but i have to run the program in an enviroment WITHOUT cygwin: it's in the DOS shell that the system() call do not works and return with code number 127.
> In the final application, i'll not use "dir" command, but another program.

system() calls /bin/sh to process the command (as the posix standards
require), and if you have no mounts there will be no /bin and hence no
/bin/sh to execute.

Brian

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

