This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
RE: script-name won't execute but script-name.py will
- 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
- Date: Thu, 15 Nov 2001 12:35:01 -0700
- 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/