Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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" To: cygwin AT sourceware DOT cygnus DOT com Subject: System call Date: Mon, 07 Aug 2000 14:14:49 GMT Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: 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 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