X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:to:subject:message-id:references
	:mime-version:content-type:in-reply-to; q=dns; s=default; b=J6uR
	qUm8U269pbImimRts3ZUOiQKvc3olMc94Xx5T+RpDpcjtt+YAgz4H7JnfUI/9p0G
	b0GeWz+VVzyrowCm4RH9rrNgVBNmMtFrseZeLiLNKrcagtTQ29uIssDwIK3yDyyS
	Sv/0sIm1zwuyC5UMIB2nkyWOB5WPd/dMm2tLgxQ=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:to:subject:message-id:references
	:mime-version:content-type:in-reply-to; s=default; bh=DOB/zD+96f
	ET8M6ORuc3xs/9Hk0=; b=QpJdAEL4j2v1kCetpQ6EnB/kzABNne1vZnsVYteWDx
	mFQLUGjDgHMiPG/dlP2/aUIHxXMKH+FoyTRXVifrFnBFEJ0SYRfXCrSCK7gbTOha
	oO3acbfLQ8wzLeXmopVxKZtMiVrH6y4S8AIgJlZu8fYBXkGRfRxsOssr4QdVIdN1
	A=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=0.8 required=5.0 tests=BAYES_50,TVD_RCVD_IP autolearn=ham version=3.3.2
X-HELO: mrvideo.vidiot.com
Date: Sun, 9 Nov 2014 18:35:30 -0600
From: Mike Brown <brown@mrvideo.vidiot.com>
To: cygwin@cygwin.com
Subject: Re: how to embed shell script within a .BAT file
Message-ID: <20141110003530.GU4678@mrvideo.vidiot.com>
References: <0D835E9B9CD07F40A48423F80D3B5A702E8379F0@USA7109MB022.na.xerox.net> <71156572.20141110005807@yandex.ru>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <71156572.20141110005807@yandex.ru>
User-Agent: Mutt/1.5.17 (2007-11-01)

On Mon, Nov 10, 2014 at 12:58:07AM +0300, Andrey Repin wrote:
> Greetings, Nellis, Kenneth!
> 
> > I'm tired of creating pairs of script files:  a clickable .BAT file 
> > to invoke my shell script and then my shell script to do the actual
> > work.
> 
> google: cygwin shell wrapper script
> I posted mine in the mailing list not once, and it's not the only available
> solution.

I'm curious.  Why go through all of what you wrote when all you need to do
is execute the shell script?  I'm a Z-shell user and have a bunch of scripts
that I run.

Maybe the secret is not to try and start a script from within a command prompt.
Start cygwin xterms.  I have two that I start up after booting the system.
The scripts are in my home/bin path, so they are found.

It is as simple as that.

It is true that they are not "clickable," but entering the script name in
the xterm also allows me to also include parameters/options.

MB
-- 
e-mail: vidiot@vidiot.com | vidiot@vidiot.net            /~\ The ASCII
        6082066843@email.uscc.net (140 char limit)       \ / Ribbon Campaign
Visit - URL: http://vidiot.com/                           X  Against
             http://vidiot.net/                          / \ HTML Email
"What do you say Beckett. Wanna have a baby?" - Castle to Det. Beckett
"How long have I been gone?" Alexis after seeing Castle and Beckett w/ baby
 - Castle - 11/25/13

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

