From owner-freebsd-questions Fri May 30 06:04:56 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id GAA14697 for questions-outgoing; Fri, 30 May 1997 06:04:56 -0700 (PDT) Received: from horton.iaces.com (root@horton.iaces.com [204.147.87.98]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id GAA14688 for ; Fri, 30 May 1997 06:04:53 -0700 (PDT) Received: (from proot@localhost) by horton.iaces.com (8.8.5/8.8.4) id IAA10550; Fri, 30 May 1997 08:03:48 -0500 (CDT) From: "Paul T. Root" Message-Id: <199705301303.IAA10550@horton.iaces.com> Subject: Re: Perl script To: nschuler@sparrow.sanasys.com (Nathan Schuler) Date: Fri, 30 May 1997 08:03:48 -0500 (CDT) Cc: dima@stv.ee, freebsd-questions@FreeBSD.ORG In-Reply-To: <2.2.32.19970530003602.006d8b60@sparrow.sanasys.com> from Nathan Schuler at "May 29, 97 07:36:02 pm" X-Organization: !nterprise Networking Services - ACES X-Phone: (612) 663-1979 X-Fax: (612) 663-8030 X-Page: (800) SKY-PAGE PIN: 537-7270 X-Address: 200 S. 5th St., Suite 1100 X-Address: Minneapolis, MN 55402 X-Mailer: ELM [version 2.4ME+ PL22 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk In a previous message, Nathan Schuler said: > >I have a file (counter.cgi) in /usr/home/dima/cgi-bin directory. > >The execution right is applied. > >The first line of file is "#!/usr/bin/perl" > >BUT ! > >when I am typing ">counter.cgi" I got a > >command not found. > >It works only in ">perl counter.cgi" variant. > >How can I start only "counter.cgi" ? > > The path /usr/bin/perl is not correct. Try "which perl" to get the correct > path. Also your shell could require that you use "./counter.cgi" /usr/bin/perl is correct. That's the 4.036 version, installed by default. You'll probably want to use Version 5.004 (as of today, there was a CERT advisory) however, which would be in /usr/local/bin/perl -- MicroEmacs vs GNU Emacs: M-X enter-nuclear-reactor-control-mode isn't there, but I never used it much anyway.