www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/11/16/10:35:54

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
From: JROZYCKI AT ebmail DOT gdeb DOT com
X-Lotus-FromDomain: GDYN
To: John Peacock <jpeacock AT rowman DOT com>
cc: Pavel Tsekov <ptsekov AT syntrex DOT com>, cygwin AT cygwin DOT com
Message-ID: <85256B06.005567C0.00@groton5.notes.gdeb.com>
Date: Fri, 16 Nov 2001 10:35:03 -0500
Subject: Re: script-name won't execute but script-name.py will
Mime-Version: 1.0

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 <jpeacock AT rowman DOT com> on 11/16/2001 09:51:03 AM

To:   Jeff Rozycki/EB/GDYN AT GDYN
cc:   Pavel Tsekov <ptsekov AT syntrex DOT com>, cygwin AT cygwin DOT com
Subject:  Re: script-name won't execute but script-name.py will



JROZYCKI AT ebmail DOT gdeb DOT 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*
> <snip>
> 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019