X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org X-Yahoo-SMTP: mjD.OBqswBAPbVUxYJaYPvc61jLEnpq8VnBwJGdbEJOPA9xw Message-ID: <4C35334C.8050606@sbcglobal.net> Date: Thu, 08 Jul 2010 02:09:16 +0000 From: Greg Chicares User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: 1.7.5: running in a non cygwin command prompt References: <079E860B59A4CB45B59EB017FF69F4586B776DE79A AT GLDMS99826 DOT goldlnk DOT rootlnka DOT net> In-Reply-To: <079E860B59A4CB45B59EB017FF69F4586B776DE79A@GLDMS99826.goldlnk.rootlnka.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com [Please: http://www.cygwin.com/acronyms/#PCYMTWLL Thanks.] On 2010-07-08 01:30Z, Shalomov, Inessa A (US SSA) wrote: > I am trying to get the system() call working in my driver which I am > running in a DOS terminal. For the sake of not porting out all of > cygwin libraries and executables, I am trying to narrow down to a set > of dll's and exe's required for my driver and only include those in > my path. If you want as few Cygwin dependencies as possible... > 3) If the system() call doesn't work when used in a non-cygwin > environment, is there a windows native system() equivalent call I > can use? ...and a native program with no Cygwin dependencies would be ideal... > retval = system("HelloWorld.exe"); ...and all you really need to do is invoke a program, then I suggest MinGW gcc (or Cygwin's old gcc-3 with '-mno-cygwin'). It provides a non-Cygwin implementation of the standard C system() function. There won't be any runtime dependencies except for dlls provided by the OS: $cygcheck ./run_hello.exe .\run_hello.exe C:\WINDOWS\System32\KERNEL32.dll C:\WINDOWS\System32\ntdll.dll C:\WINDOWS\System32\msvcrt.dll For fancier needs, consider the msw CreateProcess() system call. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple