system call

Muzero gigy@freemail.it
Tue Mar 1 08:59:00 GMT 2005


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/



More information about the Cygwin mailing list