delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/11/09/19:35:52

X-Recipient: archive-cygwin AT delorie DOT 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 AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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
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 AT mrvideo DOT vidiot DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: how to embed shell script within a .BAT file
Message-ID: <20141110003530.GU4678@mrvideo.vidiot.com>
References: <0D835E9B9CD07F40A48423F80D3B5A702E8379F0 AT USA7109MB022 DOT na DOT xerox DOT net> <71156572 DOT 20141110005807 AT yandex DOT ru>
MIME-Version: 1.0
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 AT vidiot DOT com | vidiot AT vidiot DOT net            /~\ The ASCII
        6082066843 AT email DOT uscc DOT 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

- Raw text -


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