delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/08/07/10:16:10

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
X-Originating-IP: [203.117.33.23]
From: "gang zhong" <zhong_gang AT hotmail DOT com>
To: cygwin AT sourceware DOT cygnus DOT com
Subject: System call
Date: Mon, 07 Aug 2000 14:14:49 GMT
Mime-Version: 1.0
Message-ID: <F68EqPeQ1qV94h4Jzgi0000240a@hotmail.com>
X-OriginalArrivalTime: 07 Aug 2000 14:14:49.0510 (UTC) FILETIME=[D8D2A460:01C00079]

Hi,

May I know the system function working on the Cygwin system?
I have a C program with system function working fine on UNIX but doesn't 
work on NT after I compliled it with Cygwin.

I have tried the following program, it printed out "errno=127" and didn't 
run the dir command:

# include <stdlib.h>

int main()
{
  int errno;

  errno=system("dir");
  printf("errno=%ld\n", errno);

  return 1;
  }

I tried to replace dir with dir>filelist and filelist wasn't created and I 
got the same error code. Same result for non-existing command.

Could you please check it out and let me know your finding?


Many thanks.

Zhong Gang
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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