From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9548 invoked by alias); 7 Nov 2014 21:32:21 -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 9538 invoked by uid 89); 7 Nov 2014 21:32:20 -0000 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 Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Fri, 07 Nov 2014 21:32:18 +0000 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id sA7LWHKZ020136 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Fri, 7 Nov 2014 16:32:17 -0500 Received: from [10.3.113.182] (ovpn-113-182.phx2.redhat.com [10.3.113.182]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id sA7LWFMa009330 for ; Fri, 7 Nov 2014 16:32:16 -0500 Message-ID: <545D3A5E.2040800@redhat.com> Date: Fri, 07 Nov 2014 21:32:00 -0000 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@cygwin.com Subject: Re: how to embed shell script within a .BAT file References: <0D835E9B9CD07F40A48423F80D3B5A702E8379F0@USA7109MB022.na.xerox.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 X-SW-Source: 2014-11/txt/msg00146.txt.bz2 --mADk0mUBfJqMLOQCHaxL9Q1vaKjlUNU8W Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-length: 535 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" Content-length: 539 -----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--