delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/03/09/15:22:38

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: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 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=-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 AT pobox DOT 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 AT cygwin DOT com
Subject: Re: Executing a perl script from Windows 7
References: <531CAE25 DOT 2060705 AT pobox DOT com> <531CB088 DOT 7070608 AT gmail DOT com>
In-Reply-To: <531CB088.7070608@gmail.com>
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019