This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Bash: Cannot execute binary file


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]