delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/09/16/23:34:01

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-Id: <5.0.2.1.2.20010916232024.00a02a60@pop.gmx.net>
X-Sender: nospam AT newsweekly DOT net
X-Mailer: QUALCOMM Windows Eudora Version 5.0.2
Date: Sun, 16 Sep 2001 23:31:09 -0400
To: cygwin AT cygwin DOT com
From: "Steven E. Bailey" <nospam DOT at DOT newsweekly DOT dot DOT net AT newsweekly DOT net>
Subject: Re: * execute bash script from explorer?
Mime-Version: 1.0

You could create a new shortcut to the cygwin.bat file and modify the
cmd line in the properties of that shortcut to read:

C:\CYGWIN\CYGWIN.BAT <script> <args>

The line in cygwin.bat that calls bash must be modified something like this:

bash --login -o vi %1 %2 %3 %4 %5 %6 %7 %8 %9

it should execute from explorer.  You may have to use the full path name - 
I have $HOME/bin set in my $PATH in autoexec.bat so I didn't have to.

Hope that's what you needed.

 >I want to be able to execute a bash script by double clicking on the icon
 >from explorer just as you can execute .bat files.  Is there anyway you can
 >execute cygwin.bat by passing it a parameter of a script to run?

 >cygwin.bat /c/myscript.sh ?

 >If so, then I could create a shortcut that might be accomplish this.

 >Thanks


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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