delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/05/20/17:49:17

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
To: cygwin AT cygwin DOT com
From: =?ISO-8859-1?Q?Ren=E9_Berber?= <rberber AT prodigy DOT net DOT mx>
Subject: Re: New User question
Date: Fri, 20 May 2005 16:46:00 -0500
Lines: 41
Message-ID: <d6llo0$1ha$1@sea.gmane.org>
References: <6 DOT 2 DOT 1 DOT 2 DOT 2 DOT 20050520145613 DOT 07900d40 AT mail DOT ncsa DOT uiuc DOT edu>
Mime-Version: 1.0
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
In-Reply-To: <6.2.1.2.2.20050520145613.07900d40@mail.ncsa.uiuc.edu>
X-IsSubscribed: yes

mimiller AT ncsa DOT uiuc DOT edu wrote:

[snip]  The program runs fine when I'm in cygwin, but the
> larger package I am using expects it to run in windows.

Uh?  Cygwin is running under windows, what you really mean is that you want your
program to be executed by another program or only under the windows command prompt.

> So to make the
> integration work, I'd like to find a way to run cygwin and my vic
> program then have the cygwin environment quit when I quit the vic
> program.  My first guess was;
> c:cygwin\bin>cygwin vic
> but I get an error: cannot execute binary file
> I also tried
> c:cygwin\bin>bash vic
> and got the same error.

You don't say if this test is under the windows cmd.exe (aka. Command Prompt),
but it looks like it is... so first you opened the "Command Prompt", changed dir
to cygwin, saw that there was a cygwin.bat and tried to run it with vic as
parameter... no luck, cygwin.bat doesn't work like that but, did you notice that
the bash prompt came and you changed directory to your home directory? that's
what cygwin.bat does.

Second test... well bash is not used like that either, if you want bash to
execute a command (look at man bash) you have to use, for instance, "bash -c vic".

> I'm hoping I've explained what I want to do clearly.

No, you didn't.

Have you tried just running your program?  It should work, with or without a
cygwin window (which is runnig bash or rxvt and bash or any other of the many
possibilities).  What's the catch? that it will only run in machines that have
the necessary cygwin libraries (dll), that usually means in machines that have
Cygwin instaled but you can transport your program with the necessary libraries.

HTH
-- 
René Berber


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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