From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15359 invoked by alias); 16 Nov 2001 15:35:27 -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 15338 invoked from network); 16 Nov 2001 15:35:26 -0000 Received: from unknown (HELO net2.gendyn.com) (204.60.171.12) by sourceware.cygnus.com with SMTP; 16 Nov 2001 15:35:26 -0000 Received: from [153.11.11.3] (helo=plunger.gdeb.com) by net2.gendyn.com with esmtp (Exim 2.12 #1) id 164l1P-00099P-00 for cygwin@cygwin.com; Fri, 16 Nov 2001 10:35:15 -0500 Received: from groton5.notes.gdeb.com (groton5.notes.gdeb.com [153.11.11.7]) by plunger.gdeb.com with SMTP id KAA21243; Fri, 16 Nov 2001 10:24:32 -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 85256B06.005568A6 ; Fri, 16 Nov 2001 10:32:53 -0500 X-Lotus-FromDomain: GDYN To: John Peacock cc: Pavel Tsekov , cygwin@cygwin.com Message-ID: <85256B06.005567C0.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/msg00439.txt.bz2 John, Thanks for the insight. I was hoping I *could* add arbitrary extensions. Like the .bat and .exe I thought maybe I could setup .py, .pl, .awk extensions to be automatically recognized. I'll either have to setup aliases in my .bashrc to the file or just type the full command_name with extension (yes my paths are all set) because when I edit a script in Textpad without an extension I lose syntax highlighting. Thanks everyone for all your help. -Jeff John Peacock on 11/16/2001 09:51:03 AM To: Jeff Rozycki/EB/GDYN@GDYN cc: Pavel Tsekov , cygwin@cygwin.com Subject: Re: script-name won't execute but script-name.py will JROZYCKI@ebmail.gdeb.com wrote: > > Pavel, > We are on NT 4.0. I believe I have proper permissions because I can run the > script when I tack on the script's extension, such as pl or awk. The response > is "command not found", not permission denied... Here is some output: > > bin $ pwd > /home/jrozycki/bin > bin $ ll > total 51 > drwxr-xr-x 5 jrozycki users 4096 Nov 15 19:09 ./ > drwxr-xr-x 10 jrozycki users 8192 Nov 15 15:55 ../ > -rwxr-xr-x 1 jrozycki users 735 Nov 15 14:41 maxcom.py* > > bin $ maxcom > bash: maxcom: command not found > bin $ ./maxcom > bash: ./maxcom: No such file or directory > The script's name is 'maxcom.py' not 'maxcom' so why would you expect CygWin to find it? EXE, BAT, CMD are special cases, in that you don't need to type the extension. There is no way to do that for arbitrary extensions either in CygWin, Windows, or any *nix I am aware of. Rename the file to 'maxcom' and it will work (but only as ./maxcom unless you add '.' to your path). HTH John -- John Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4720 Boston Way Lanham, MD 20706 301-459-3366 x.5010 fax 301-429-5747 -- 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/