Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 To: cygwin AT cygwin DOT com From: =?ISO-8859-1?Q?Ren=E9_Berber?= Subject: Re: New User question Date: Fri, 20 May 2005 16:46:00 -0500 Lines: 41 Message-ID: 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 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit 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/