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:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type; q=dns; s=default; b=ItP39c 5/gycbM1oQOt5awFhEUrlxvIGXfDOxbvn3uNvRspebmENOiVo4w90AR1TjhMx+dJ ezifkzmvHiUARFInp8TE8zcZBqsxGwlcT22jUUs11X3ALUenlDR0QPmvOjZdLOgX 8ioBExPY45A3RvtaqGL6NUB/jZFLXi/YO5aLc= 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:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type; s=default; bh=UBxa9+wk0WEF hZ8vtbmLgm3lrcg=; b=cR8gBfYkLPbTjSUrjzCQ1ejqKj1ywWPioe5F2Rfa8y9F F9uZ1YjrnZR2k1+biksjURq5NugivcXyuhEdh/NOg4q0zVRcdlzifkDoWMw6RqnG hRSUjSrahL34irPpEclXKk/UjNzM1jCo5n7TP9eMo4PipwwjqQzznaHd4fCzOe4= 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=-2.3 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Message-ID: <545D3A5E.2040800@redhat.com> Date: Fri, 07 Nov 2014 22:32:14 +0100 From: Eric Blake User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: how to embed shell script within a .BAT file References: <0D835E9B9CD07F40A48423F80D3B5A702E8379F0 AT USA7109MB022 DOT na DOT xerox DOT net> In-Reply-To: <0D835E9B9CD07F40A48423F80D3B5A702E8379F0@USA7109MB022.na.xerox.net> OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="mADk0mUBfJqMLOQCHaxL9Q1vaKjlUNU8W" X-IsSubscribed: yes --mADk0mUBfJqMLOQCHaxL9Q1vaKjlUNU8W Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 11/07/2014 10:26 PM, Nellis, Kenneth wrote: > I'm tired of creating pairs of script files: a clickable .BAT file=20 > 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=20 > up with a way to embed a shell script inside a clickable .BAT file. A quick google search for "polyglot shell bat" finds: http://www.spinellis.gr/blog/20100112/ --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --mADk0mUBfJqMLOQCHaxL9Q1vaKjlUNU8W Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg iQEcBAEBCAAGBQJUXTpeAAoJEKeha0olJ0Nq7tkH/1rPhz+bOqc1D+39COxW7NwO Es3xpreHrt4PWv1+prtQkq7cfSV5Nk0pKkkBXXBnnZxxe5Ya5K8tx8Nf4/DSIBnD MW4z7FMJJFh9BCX0MzUJslr73iYUwGjmn/Kt9qJRRuJ706Mjbch79FVoWLtonyIJ VBdZl+MOkEH9fUWUl8vXmpYfuQqomv/uH5zOgnlTEA/4ubhk7UvZS0ubyS5s81nq 3TvOAI0X9hc9cIJG23skc2vrTK6r3saTyQPdVYKQqHOsgPVQ0eCqPNtIcIA3iCiD x1U03gY+YaFG5VbggaSDGCKUwp4mciXQwrKJl0QYMmA9qde2vu0ul7mr7LhN15g= =QWyM -----END PGP SIGNATURE----- --mADk0mUBfJqMLOQCHaxL9Q1vaKjlUNU8W--