delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/11/09/18:01:56

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:mime-version:in-reply-to:references:date
:message-id:subject:from:to:content-type; q=dns; s=default; b=CI
IiIrLkuk3cJ7UCKdBbwzLbWBFLKxZzNlOx2UyvuwxRRcuHVyzNLsUwezy9tww1oJ
+3acK9m4ilC0xjxThTJUFZAQ2K143rzFUvB2z6lApA4mSmc20zjp0KMzw+kYU74W
ynEDQbEGwGkT2LNNid2cFmkzyNOeC2wU35S8K0Glk=
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:mime-version:in-reply-to:references:date
:message-id:subject:from:to:content-type; s=default; bh=wakqDH3f
cY0DAR0iy4HQYC6/+mc=; b=EuIvHjPOlmG6hCSl9FIQXwu3+q40taN7m9D4+3/N
nssAc1E/ATcqYkCkCoft//XpIgJnoFP0kX2/AJqvVR/PBfu3c6vS4102CrK2ajbU
SXvx2nofrxcNGUG2UrCOI7rhkV70QyLagorJrGAMtAO6ikwyVzCuNels01bcCgp1
QC0=
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=AWL,BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mail-la0-f54.google.com
MIME-Version: 1.0
X-Received: by 10.152.28.72 with SMTP id z8mr11395386lag.52.1415574097628; Sun, 09 Nov 2014 15:01:37 -0800 (PST)
In-Reply-To: <0D835E9B9CD07F40A48423F80D3B5A702E8379F0@USA7109MB022.na.xerox.net>
References: <0D835E9B9CD07F40A48423F80D3B5A702E8379F0 AT USA7109MB022 DOT na DOT xerox DOT net>
Date: Sun, 9 Nov 2014 18:01:37 -0500
Message-ID: <CABa6CEmQ86B-eJsAfN1kuB_uQ6UOQWQPJ1Fa-EF0NqK+XFA1rA@mail.gmail.com>
Subject: Re: how to embed shell script within a .BAT file
From: cyg Simple <cygsimple AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes

On Fri, Nov 7, 2014 at 4:26 PM, Nellis, Kenneth wrote:
> 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. I was wondering if any of the geniuses on this list have come
> up with a way to embed a shell script inside a clickable .BAT file.
>

Isn't this as simple as adding the path to cygwin/bin to PATH and
executing the commands you need?

Or associate .sh extension to cygwin/bin/bash.exe then clicking will
associate the correct shell.

-- 
cyg Simple

--
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