This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

system call


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]