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: How can I assign a hotkey to run a cygwin/bash script?


Dave Korn wrote on Thursday, March 05, 2009 10:48 PM:
> Hongyi Zhao wrote:
>> Hi all,
>> 
>> I've written a cygwin/bash script and want to run it by a customized
>> hotkey laterly,  it this possible?
>> 
> 
>   Sure.  Create a windows shortcut to bash.exe, open the properties. 
> In "Target", after C:\cygwin\bin\bash.exe, add 
> 
>     --login -i -c "<your command here in bash syntax>"

Although I normally defer to Dave, who is far more knowledgeable in
these things than I am, I am surprised that he suggests the -i option
that makes bash interactive.  If the shortcut does not work the way you
want, try dropping it.  (The scripts that I run from Windows shortcuts
work fine with --login -c without the -i.

- Barry
  Disclaimer: Statements made herein are not made on behalf of NIAID.

--
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/


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