X-Recipient: archive-cygwin@delorie.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:content-transfer-encoding;
	 q=dns; s=default; b=tNTs31idlVS6T3iDpnZmUnTYKns4kLb4eFSQ+BM/Yiq
	LRXTCRESIoJONaKJwfjQl2a+63MYwH9zg7/ZtJg7K33l2bOn4HJahlC6Zlabv0Ay
	l0c/ogu1yjf/oVYVjDkZeYW4Qwuj2SLv09NgKvKd9QQ+CNo90S/7k3uw1yqDMu3M
	=
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:content-transfer-encoding;
	 s=default; bh=JvHSbydmiG3H+Y2zZfAM65hQaSE=; b=Wsx6cU1hbVy7zDOzD
	7gpA/i/yiv0azW1Lv7/sgCsOrVfAL+arhM217rmJq2g8mnG2xjCa2neSSnVudRR2
	eu6rzJjiYG0Ppur19e8lolQkxEV4RyMtXWRdF5iX8RAlK6TIKXW86fVbyzCrPlHg
	hs3OBRku1dg/fTcAa68GLNRq7M=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2
X-HELO: smtp.pobox.com
Message-ID: <531CBF6C.6020305@pobox.com>
Date: Sun, 09 Mar 2014 15:22:20 -0400
From: Peter Holsberg <pjh42@pobox.com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: Executing a perl script from Windows 7
References: <531CAE25.2060705@pobox.com> <531CB088.7070608@gmail.com>
In-Reply-To: <531CB088.7070608@gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Pobox-Relay-ID: 22299B62-A7C0-11E3-9751-8D19802839F8-05489022!b-pb-sasl-quonix.pobox.com
X-IsSubscribed: yes

On 3/9/2014 2:18 PM, Max Polk wrote:
> On 3/9/2014 2:08 PM, Peter Holsberg wrote:
>> I have a perl script that I would like to execute simply by
>> double-clicking on its name from a Windows filemanager window. (That
>> is, I do not want to use the command line at all, nor do I want to use
>> an icon.)
>>
>> Eg, myscript.pl
>>
>> I tried using this
>>
>> #!C:\cygwin64\bin\perl.exe
>
> Windows does not pay attention to file contents (like the first line in
> your example), only the file name.  If you don't want a file
> association, you can opt to simply create a shortcut to your script that
> begins with the python executable and that lists the script as a parameter.

A file association to what, .pl to perl.exe?

Well, a shortcut would be a desktop icon, wouldn't it?

Why did you mention python?

Thanks.

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

