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 :content-type:content-transfer-encoding; q=dns; s=default; b=JKU h/5zmndDRarZ3XN9Np5NuPYTgkXeG2YrL54jbuXp4bObnnyJAf0NC4o3Q7TaVzG+ 6bE7zDKCFh3p7KphUF5ncneoF2OEg25xf6oZ0Hro2SUQHklD/QamXCBynbrqWZ0W A0DRfcUYgPzE8mZEy0O9Bp0OitoRlyd2/aenEMaE= 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 :content-type:content-transfer-encoding; s=default; bh=ul/8TZnRZ 8hOQxG+SJy0HOj+RB4=; b=vlEpndw/C8Ja+yEYojBxPXrYaMZKU/yAVxlKm6Jtv zQoEGdJaDA+KDdrUVHu13JEW+AtIRG/fEqF5K0YuPJpYnHHMXpu+zCCzbKIvnDn5 pEIeIxeAGzeu+A3zCSeZjZ4/cxHHA0IBq5yvXoZ4GZ45pCcnqJDEDmoCQ2feoiuN AQ= 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=-0.9 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: <531CAE25.2060705@pobox.com> Date: Sun, 09 Mar 2014 14:08:37 -0400 From: Peter Holsberg 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: Executing a perl script from Windows 7 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pobox-Relay-ID: D5A8CE48-A7B5-11E3-B533-8D19802839F8-05489022!b-pb-sasl-quonix.pobox.com X-IsSubscribed: yes Hi, 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 as the first line in the script but when I double-click the script, Windows opens it in a text editor. (I suppose I have .pl associated with that editor!) How do I fix this? 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