delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/03/01/03:59:23

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
Date: Tue, 1 Mar 2005 09:58:49 +0100
From: Muzero <gigy AT freemail DOT it>
To: cygwin AT cygwin DOT com
Subject: system call
Message-Id: <20050301095849.2242440d.gigy@freemail.it>
In-Reply-To: <42235790.3070208@subnet142.com>
References: <42235790 DOT 3070208 AT subnet142 DOT com>
Mime-Version: 1.0
X-IsSubscribed: yes

hi to all,
i have a problem with C system() call:

When i try to compile and execute a simple program like this:

int main()
{
	system("dir");
	return 0;
}

On CYGWIN shell it works without problems...but when i try to execute it without cygwin enviroment (on dos shell) system call do not work and exit with exit code 127.

What i should do? Thanks a lot for any help

Muzero










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