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:reply-to:message-id:to:subject :in-reply-to:references:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=Xm94zRhp0wEsN3Xy DWXJB3uLvffSwAGIuNUUmZ+C4cAdmrX3Wn6TNoL/AuTfozmU2LLaDkKuq3EjcrUi kyHACfYEVtskr+BsAzHJK0BsIBfvJ7o5TGTkOpoj7zrBUlNcG+6LLEgyFzS5sZ9S LTF5hb7DdfSpOMEVmmKLXkc6n3U= 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:reply-to:message-id:to:subject :in-reply-to:references:mime-version:content-type :content-transfer-encoding; s=default; bh=hAOaqyvfrUD0F2TXCaSI83 JKvSM=; b=WftUUqSuhOHINRo27khxkfSHj1TmhcN7VeM1Q/yK184YAFBCugwxdH 8LnIpPL4vFF1BaNl+7M0V7RdLO3Wk/mWUGSmaZ2i3wQhBjKI5isXTKDpCscrS4vu dIqrtPuxWmgRsMHMIIGOJqytVadwQ335FPzEqzYMaJM23o76TCkNs= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.3 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_THEBAT,SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: smtp.ht-systems.ru Date: Mon, 10 Nov 2014 05:10:00 +0300 From: Andrey Repin Reply-To: cygwin AT cygwin DOT com Message-ID: <1119256670.20141110051000@yandex.ru> To: Mike Brown , cygwin AT cygwin DOT com Subject: Re: how to embed shell script within a .BAT file In-Reply-To: <20141110003530.GU4678@mrvideo.vidiot.com> References: <0D835E9B9CD07F40A48423F80D3B5A702E8379F0 AT USA7109MB022 DOT na DOT xerox DOT net> <71156572 DOT 20141110005807 AT yandex DOT ru> <20141110003530 DOT GU4678 AT mrvideo DOT vidiot DOT com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Greetings, Mike Brown! >> > 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. Scripts aren't executed in vacuum. And the question is not limited to SHELL scripts. > Maybe the secret is not to try and start a script from within a command prompt. > Start cygwin xterms. Why? I don't need no friggin xterm, I need to run a script. Is this a hard concept to grasp? > 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. Simple as what? I don't understand, what "two" you have and what you are actually doing. > It is true that they are not "clickable," but entering the script name in > the xterm also allows me to also include parameters/options. I don't know the name, I have a script that I want to run. Here. Now. Why can't I just click it? -- WBR, Andrey Repin (anrdaemon AT yandex DOT ru) 10.11.2014, <05:07> Sorry for my terrible english... -- 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