delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/03/09/14:19:11

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=wZzH4sU716U8W6WaelepoZILX5IkPVnIAb/jF00zOCv
vXDFh8+8v99c72fu0NHIJbrrcgj1k8TJOkykMtxXl/WdCsMYhPcxTTNLc4f0Mvgv
YSyovR3hxWPgyl3cGlZdqC/rOVIGN3nFzqjAfFE8SWAs15FNO9ffqdL9a+DNyfvY
=
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=Fk0rcRjDQg4Kv3mxzKcXziLC/i0=; b=QGLCRz9tFzbfvQwHL
UYWlZuBa4lUKzHPYWy5hdV61kRgeNjCLXE5vIlih5naQBdPE1el1RpdPUCSfSQN9
+EwZa+v1ypD3QHH0G4sPwTvY/e3Wj0Oi8DhC6TpOEN8ENfr1HSfnSV0XZYCE6+PO
J4BdQK5QDQueGJPqRur/8+/UmA=
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.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mail-qa0-f54.google.com
X-Received: by 10.224.80.201 with SMTP id u9mr35896545qak.5.1394389129391; Sun, 09 Mar 2014 11:18:49 -0700 (PDT)
Message-ID: <531CB088.7070608@gmail.com>
Date: Sun, 09 Mar 2014 14:18:48 -0400
From: Max Polk <maxpolk AT gmail 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>
In-Reply-To: <531CAE25.2060705@pobox.com>
X-IsSubscribed: yes

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.

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