From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27830 invoked by alias); 29 Mar 2011 02:28:03 -0000 Received: (qmail 27822 invoked by uid 22791); 29 Mar 2011 02:28:02 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,TW_YG,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from csmail.cs.umass.edu (HELO csmail.cs.umass.edu) (128.119.240.177) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 29 Mar 2011 02:27:57 +0000 Received: from [12.109.159.42] (1513hostw2.starwoodbroadband.com [12.109.158.2]) by csmail.cs.umass.edu (Postfix) with ESMTPSA id 11C6DE0000194C5B42; Mon, 28 Mar 2011 22:27:50 -0400 (EDT) Message-ID: <4D914393.5090409@cs.umass.edu> Date: Tue, 29 Mar 2011 08:40:00 -0000 From: Eliot Moss Reply-To: moss@cs.umass.edu User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 MIME-Version: 1.0 To: cygwin@cygwin.com Subject: Re: Bash: Cannot execute binary file References: <31263793.post@talk.nabble.com> <20110329013343.GD12793@ednor.casa.cgf.cx> <31263838.post@talk.nabble.com> <20110329015306.GE12793@ednor.casa.cgf.cx> In-Reply-To: <20110329015306.GE12793@ednor.casa.cgf.cx> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2011-03/txt/msg00811.txt.bz2 Why not just use the Windows version and invoke it from cygwin (if cygwin is the environment from which you want to do that)? It is easy to invoke Windows programs from cygwin; you just need to remember to format any arguments in the form the Windows program wants. To that end, cygpath is a useful utility, e.g.: function acrobat () { command acrobat $(cygpath -wa ${1}) } in your .bashrc file allows you to invoke Windows acrobat with a path rewritten from cygwin format to Windows format. This can be improved to check for presence of the argument ${1}, etc., but perhaps you get the idea. Best wishes -- Eliot Moss -- 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