This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: system() call behaviour.
- To: paslawsk at cadvision dot com (Dan Paslawski)
- Subject: Re: system() call behaviour.
- From: GNU Win32 <gnuwin32 at niteroi dot gsfc dot nasa dot gov>
- Date: Fri, 8 May 1998 21:03:56 -0400 (EDT)
- Cc: gnu-win32 at cygnus dot com, paslawsk at cadvision dot com
Dan,
>
> When running this under the Cygwin Bash environment, this code works properly. However,
> if I run the code in a Windows NT Command Prompt Window (or an MS_DOS Window under
> Windows 95), the calls to system() fail. I have also tried this segment of code with other
> commands (eg. dir, copy, mspaint), with the same results.
>
> Any suggestions?
>
I had similar problems. Make sure "sh.exe" is in your path and system()
will work under the MS-DOS shell.
--
Arlindo da Silva
dasilva@alum.mit.edu
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".