X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.4 required=5.0	tests=BAYES_00,DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RP_MATCHES_RCVD,SPF_HELO_PASS,TW_QL,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Ted Byers <r.ted.byers@gmail.com>
Subject: How do I run a program compiled in cygwin from a program that is running in a Windows CMD shell?
Date: Thu, 15 Sep 2011 04:13:34 +0000 (UTC)
Lines: 22
Message-ID: <loom.20110915T060405-768@post.gmane.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

The program run, and works, but ...

I have a perl program running from a WIndows CMD shell, that needs to somehow 
run it in bash (with my usual environment when I run the bash shell)

If I run bash, I invoke my program my program using './qlt' followed by almost 
a dozen commandline arguments.

If I had compiled it using MSVC++, I could invoke it from my perl program 
using "my $op = `qlt a nb c args`;"

How do I modify what is within perl's backticks so that qlt is invoked as a 
child in my normal bash environment?  Can it be done?

I am not asking about building the program so it doesn't need to run within 
cygwin's bash.  I have other tools that let me do that if I must.  Rather, I 
want to make a child process that has the cygwin environemt even though the 
parent process does not.

Thanks

Ted


--
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

