Bash: Cannot execute binary file

Eliot Moss moss@cs.umass.edu
Tue Mar 29 08:40:00 GMT 2011


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



More information about the Cygwin mailing list