This is the mail archive of the cygwin@sources.redhat.com 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]

Re: System call


On Mon, Aug 07, 2000 at 10:21:22AM -0400, DJ Delorie wrote:
>>   errno=system("dir");
>
>There is no program called "dir" anywhere on your computer.  No
>dir.exe, no dir.com.  Only the command shell knows how to run "dir"
>(and other built-ins).  So, if you want to do a "dir" you must tell
>the command shell to do it, either with system("cmd /c dir") or system
>("command /c dir").

Also, make sure that you have a "/bin/sh" on your system.

The system() function uses /bin/sh to run programs.

cgf

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


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