www.delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,SPF_PASS |
X-Spam-Check-By: | sourceware.org |
X-IronPortListener: | Outbound_SMTP |
From: | "Buchbinder, Barry (NIH/NIAID) [E]" <BBuchbinder AT niaid DOT nih DOT gov> |
To: | "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com> |
Date: | Fri, 6 Mar 2009 08:20:08 -0500 |
Subject: | RE: How can I assign a hotkey to run a cygwin/bash script? |
Message-ID: | <0105D5C1E0353146B1B222348B0411A29A674ED7@NIHMLBX02.nih.gov> |
References: | <8p21r4pui1dgbl8q2ovpvcsharaburle84 AT 4ax DOT com> <49B09CE9 DOT 1060500 AT gmail DOT com> |
In-Reply-To: | <49B09CE9.1060500@gmail.com> |
MIME-Version: | 1.0 |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Dave Korn wrote on Thursday, March 05, 2009 10:48 PM: > Hongyi Zhao wrote: >> Hi all, >>=20 >> I've written a cygwin/bash script and want to run it by a customized >> hotkey laterly, it this possible? >>=20 >=20 > Sure. Create a windows shortcut to bash.exe, open the properties.=20 > In "Target", after C:\cygwin\bin\bash.exe, add=20 >=20 > --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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |