X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: <20120116050510.GC12205@ednor.casa.cgf.cx> References: <20120116050510 DOT GC12205 AT ednor DOT casa DOT cgf DOT cx> Date: Mon, 16 Jan 2012 14:14:08 +0400 Message-ID: Subject: Re: system() not working outside of Cygwin environment From: Yuri Gribov To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 Christopher, > So, if /bin/sh is not available then system() won't work. Thank you, that's precisely what I needed (you could just reply "man system", that would be enough). > Also note that if you are planning on making a program which is distributed independent of Cygwin FYI I am installing/porting an open-source app to our Windows cluster. The app was designed for POSIX systems so I use Cygwin. Our users are developing programs on their desktops and then submit via web interface. They all potentially use different versions of Cygwin (and cygwin1.dll's) so I don't want to install a fixed Cygwin environment on a cluster. People just provide our job spawner with cygwin1.dll and executable and then we run exe. In this scenario system() will not work (because bash is missing). For now I'll work around by replacing it with brain-dead CreateProcess(). -- Best regards, Yuri -- 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