delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT sources DOT redhat DOT com |
Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
Message-ID: | <09719EC6B8C4D5119A7600D0B76FDDE10B8427@cpex3.channelpoint.com> |
From: | Troy Noble <troy DOT noble AT channelpoint DOT com> |
To: | "'JROZYCKI AT ebmail DOT gdeb DOT com'" <JROZYCKI AT ebmail DOT gdeb DOT com>, cygwin AT cygwin DOT com |
Subject: | RE: script-name won't execute but script-name.py will |
Date: | Thu, 15 Nov 2001 12:35:01 -0700 |
MIME-Version: | 1.0 |
X-Mailer: | Internet Mail Service (5.5.2653.19) |
X-Scanned-By: | MIMEDefang 1.0 (http://www.roaringpenguin.com/mimedefang/) |
Try adding #!/usr/bin/python as the first line of your scripts (substitute the appropriate path/filename depending on whether it's python, perl, bash, etc. and where the filename lives /usr/bin, /usr/local/bin, etc.) Or if you're sure it's always going to be on your PATH you can use #!env python Then the filename extension doesn't matter. I've even had luck invoking native win32 script interpreters, such as ActiveState Perl this way such as: #!/cygdrive/c/Perl/bin/perl Hey, this stuff really does work like Unix! Troy -----Original Message----- From: JROZYCKI AT ebmail DOT gdeb DOT com [mailto:JROZYCKI AT ebmail DOT gdeb DOT com] Sent: Thursday, November 15, 2001 12:13 PM To: cygwin AT cygwin DOT com Subject: script-name won't execute but script-name.py will -snip ... you're welcome Earnie -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |