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: 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 Content-Type: text/plain; charset=us-ascii X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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/