delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/01/16/05:14:31

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: <CAJOtW+6mu8JDmyBsXGbWc_emnVRJMuJDSC7W4jzPPWwan3xp+g AT mail DOT gmail DOT com> <20120116050510 DOT GC12205 AT ednor DOT casa DOT cgf DOT cx>
Date: Mon, 16 Jan 2012 14:14:08 +0400
Message-ID: <CAJOtW+7Oc325jQB4Tu=AMVJhtP98tc+=_4UWTUS=Oc84W_e_Cg@mail.gmail.com>
Subject: Re: system() not working outside of Cygwin environment
From: Yuri Gribov <tetra2005 AT googlemail DOT com>
To: cygwin AT cygwin DOT com
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019