Originally posted by Framcl
Hi all, im trying to use system(); with Cygwin but its not working...
look my code;
-------------
#include <stdlib.h>
int main(void)
{
printf("test");
system("dir");
return 0;
}
-------------
I'm doing gcc test.c -o test.exe
and im running test.exe under Windows with cygwin1.dll !
Thanks
-my email is fr****@cgocable.ca
I Have the SAME problem, i discovered it with two winshit systems
I had win95c and win200
and put this:
int main(int ac,char **av)
{
system("/bin/sleep 60");
}
just to prove it
it works under win200, but it compiles on win95c, but doesnt work
system on win95c never runs that command with system ()
I don't know wtf is going on. It's the same cygwin on both os, but it
someone can help, thanks a lot
I need that function on both os's
--
Posted via
http://dbforums.com