This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
starting programs from a windows prompt
- From: "Albert Russel" <a dot russel at chello dot nl>
- To: <cygwin at cygwin dot com>
- Date: Sun, 31 Mar 2002 12:21:13 +0200
- Subject: starting programs from a windows prompt
Hi,
I have a problem with programs that start processes when they are run from
the windows2000 prompt:
// Parent program parent.c
#include <stdlib.h>
#include <sys/wait.h>
int main() {
system("child");
return 0;
}
// Child program child.c
#include <stdio.h>
int main() {
printf("freeeen\n");
return 0;
}
Both programs compile and run fine from the cygwin shell, I start the parent
program and 'freeeen' is printed to the screen. If I start the parent
program from the windows2000 prompt no output is being sent to the screen.
No error message is printed, just nothing happens. The cygwin dll is in my
path. Should I use another call than 'system'?
Greetings, Albert
--
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/