| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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 |
| content-class: | urn:content-classes:message |
| Subject: | System() command |
| MIME-Version: | 1.0 |
| Date: | Tue, 7 Jan 2003 12:55:09 +0200 |
| Message-ID: | <988BE481ACC95C429DCB909F74A3163A05D660@exchange-il> |
| X-MimeOLE: | Produced By Microsoft Exchange V6.0.5762.3 |
| X-MS-Has-Attach: | |
| X-MS-TNEF-Correlator: | |
| From: | "Maor Avni" <Maor DOT Avni AT ParthusCeva DOT com> |
| To: | <cygwin AT cygwin DOT com> |
| X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id h07CAMh13592 |
Hi,
I have this very simple C program:
#include <stdlib.h>
int main()
{
char a[] = "echo echo testing 123";
system(a);
return 0;
}
I compile it with gcc and everything works fine, until I run it under Win2K's cmd.exe: the program just exits and does nothing.
I have set up the PATH environment variable, and it still doesn't work.
Any ideas?
Maor Avni
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |