delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
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 |
Message-ID: | <40ECB238.9180C98D@dessent.net> |
Date: | Wed, 07 Jul 2004 19:32:24 -0700 |
From: | Brian Dessent <brian AT dessent DOT net> |
Organization: | My own little world... |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Running a shell Script Directly from windows |
References: | <Pine DOT LNX DOT 4 DOT 44 DOT 0407072102550 DOT 1460-100000 AT ccc3 DOT wpi DOT edu> |
X-IsSubscribed: | yes |
Reply-To: | cygwin AT cygwin DOT com |
Scott Emerson Longley wrote: > I am wondering if Cygwin provides a way to run shell scripts or other > programs that run within Cygwin, directly from windows (or a .bat). In > other words, I would like to double-click something on my desktop and have > it run the shell script. I have fooled a little with bash command-line > options and whatnot, but to no avail. Any insight or URL's that lead to an > answer would be greatly appreciated. Create a shortcut that runs "sh.exe /path/to/script.sh". When you click on it your script will run in a command window. If your cygwin bin directory is not in your path then the shortcut will have to include it, i.e. "c:\cygwin\bin\sh.exe /home/foo/bar.sh". The executable's location is a Windows path, the args to it are POSIX paths. If the script has something other than /bin/sh in the shebang, then substitute appropriately. Brian -- 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 |