From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19948 invoked by alias); 15 Nov 2001 19:45:10 -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 19926 invoked from network); 15 Nov 2001 19:45:08 -0000 Received: from unknown (HELO net2.gendyn.com) (204.60.171.12) by sourceware.cygnus.com with SMTP; 15 Nov 2001 19:45:08 -0000 Received: from [153.11.11.3] (helo=plunger.gdeb.com) by net2.gendyn.com with esmtp (Exim 2.12 #1) id 164SRc-0002mY-00 for cygwin@cygwin.com; Thu, 15 Nov 2001 14:45:04 -0500 Received: from groton5.notes.gdeb.com (groton5.notes.gdeb.com [153.11.11.7]) by plunger.gdeb.com with SMTP id OAA04578; Thu, 15 Nov 2001 14:34:26 -0500 (EST) From: JROZYCKI@ebmail.gdeb.com Received: by groton5.notes.gdeb.com(Lotus SMTP MTA v4.6.7 (934.1 12-30-1999)) id 85256B05.006C4865 ; Thu, 15 Nov 2001 14:42:44 -0500 X-Lotus-FromDomain: GDYN To: Troy Noble cc: cygwin@cygwin.com Message-ID: <85256B05.006C4612.00@groton5.notes.gdeb.com> Date: Sun, 11 Nov 2001 08:26:00 -0000 Subject: RE: script-name won't execute but script-name.py will Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Disposition: inline X-SW-Source: 2001-11/txt/msg00325.txt.bz2 Troy, The interpreter line is already specfied on the first line of all my scripts. So something else must be the culprit. Thanks, Jeff Troy Noble on 11/15/2001 02:35:01 PM To: Jeff Rozycki/EB/GDYN@GDYN, cygwin@cygwin.com cc: Subject: RE: script-name won't execute but script-name.py will 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/