delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/03/01/04:56:19

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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: <42243D77.EB6DD8DF@dessent.net>
Date: Tue, 01 Mar 2005 02:01:27 -0800
From: Brian Dessent <brian AT dessent DOT net>
Organization: My own little world...
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: system call
References: <42235790 DOT 3070208 AT subnet142 DOT com> <20050301095849 DOT 2242440d DOT gigy AT freemail DOT it> <20050301090233 DOT GT18314 AT cygbert DOT vinschen DOT de> <20050301103835 DOT 0084b49c DOT gigy AT freemail DOT it>
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT 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/

- Raw text -


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