From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8078 invoked by alias); 10 Nov 2014 02:20:14 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 8064 invoked by uid 89); 10 Nov 2014 02:20:12 -0000 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 Received: from smtp.ht-systems.ru (HELO smtp.ht-systems.ru) (78.110.50.177) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Mon, 10 Nov 2014 02:20:09 +0000 Received: from [91.78.178.160] (helo=darkdragon.lan) by smtp.ht-systems.ru with esmtpa (Exim 4.80.1) (envelope-from ) (Authenticated sender: postmaster@rootdir.org) id 1XneaH-0001Hl-S8 ; Mon, 10 Nov 2014 05:20:01 +0300 Received: from [192.168.1.10] (HELO daemon2) by daemon2 (Office Mail Server 0.8.12 build 08053101) with SMTP; Mon, 10 Nov 2014 02:10:00 -0000 Date: Mon, 10 Nov 2014 02:20:00 -0000 From: Andrey Repin Reply-To: cygwin@cygwin.com Message-ID: <1119256670.20141110051000@yandex.ru> To: Mike Brown , cygwin@cygwin.com Subject: Re: how to embed shell script within a .BAT file In-Reply-To: <20141110003530.GU4678@mrvideo.vidiot.com> References: <0D835E9B9CD07F40A48423F80D3B5A702E8379F0@USA7109MB022.na.xerox.net> <71156572.20141110005807@yandex.ru> <20141110003530.GU4678@mrvideo.vidiot.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2014-11/txt/msg00171.txt.bz2 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@yandex.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