From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16791 invoked by alias); 15 Nov 2001 19:35:06 -0000 Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@sources.redhat.com Received: (qmail 16770 invoked from network); 15 Nov 2001 19:35:05 -0000 Received: from unknown (HELO cos-fw) (216.253.253.254) by sourceware.cygnus.com with SMTP; 15 Nov 2001 19:35:05 -0000 Received: from cpex3.channelpoint.com (cpex3.channelpoint.com [10.112.2.27]) by talisker.channelpoint.com (8.11.0/8.11.0) with ESMTP id fAFJZ0Q11420; Thu, 15 Nov 2001 12:35:00 -0700 (MST) Received: by cpex3.channelpoint.com with Internet Mail Service (5.5.2653.19) id ; Thu, 15 Nov 2001 12:35:02 -0700 Message-ID: <09719EC6B8C4D5119A7600D0B76FDDE10B8427@cpex3.channelpoint.com> From: Troy Noble To: "'JROZYCKI@ebmail.gdeb.com'" , cygwin@cygwin.com Subject: RE: script-name won't execute but script-name.py will Date: Sun, 11 Nov 2001 08:26:00 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-Scanned-By: MIMEDefang 1.0 (http://www.roaringpenguin.com/mimedefang/) X-SW-Source: 2001-11/txt/msg00324.txt.bz2 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@ebmail.gdeb.com [mailto:JROZYCKI@ebmail.gdeb.com] Sent: Thursday, November 15, 2001 12:13 PM To: cygwin@cygwin.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/