delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/10/31/15:45:38

X-Spam-Check-By: sourceware.org
Date: Tue, 31 Oct 2006 20:45:23 GMT
From: cygwin AT snowstone DOT org DOT uk
To: cygwin AT cygwin DOT com
Subject: RE: Newbie questions: missing packages / script writing
Message-ID: <ff769c7e4e.admin@snowstone.org.uk>
References: <31DDB7BE4BF41D4888D41709C476B657041692B9 AT NIHCESMLBX5 DOT nih DOT gov>
In-Reply-To: <31DDB7BE4BF41D4888D41709C476B657041692B9@NIHCESMLBX5.nih.gov>
User-Agent: Messenger-Pro/4.12 (MsgServe/3.25) (RISC-OS/4.39) POPstar/2.06-ds.5
MIME-Version: 1.0
X-IsSubscribed: yes
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

In message <31DDB7BE4BF41D4888D41709C476B657041692B9 AT NIHCESMLBX5 DOT nih DOT gov>, Buchbinder, Barry \(NIH/NIAID\) [E] wrote:

> on Tuesday, October 31, 2006 1:33 PM, cygwin AT snowstone DOT org DOT uk wrote:

> > but is there away to double click on a file in Windows and have it
> > invoke the bash console and execute my script?   

> Set up a windows shortcut that calls bash program with options:
> 
> 	c:\cygwin\bin\bash.exe -c /usr/local/bin/script.sh
> 
> If the script takes options you may need to include quotes.
> 
> 	c:\cygwin\bin\bash.exe -c '/usr/local/bin/script.sh opt1 opt2'

Thanks.

>
> But I would suggest a newbie get very familiar with now things work when
> you type at the command line before you do something like this.

Fair enough.

Cheers,
Adam

-- 
Adam Richardson
Carpe Diem

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019