From owner-freebsd-questions Wed May 28 23:44:18 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id XAA28846 for questions-outgoing; Wed, 28 May 1997 23:44:18 -0700 (PDT) Received: from main.gbdata.com (USR1-1.detnet.com [207.113.12.14]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id XAA28837 for ; Wed, 28 May 1997 23:44:14 -0700 (PDT) Received: (from gclarkii@localhost) by main.gbdata.com (8.8.5/8.8.5) id BAA05936; Thu, 29 May 1997 01:44:07 -0500 (CDT) From: Gary Clark II Message-Id: <199705290644.BAA05936@main.gbdata.com> Subject: Re: Perl script To: mdgrosse@sbox.tu-graz.ac.at (MICHAEL GROSS) Date: Thu, 29 May 1997 01:44:06 -0500 (CDT) Cc: dima@stv.ee, freebsd-questions@FreeBSD.ORG In-Reply-To: from MICHAEL GROSS at "May 27, 97 05:38:36 pm" 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 Does he have the current directory in his path???? Gary MICHAEL GROSS wrote: > Try the following: > ->You must set the executable-flag of the counter.cgi (use "chmod +x > counter.cgi). > ->is perl really in the "/usr/bin" - directory ? > ->if the file comes from a DOS/Windows-OS there is often a "CR/LF" at the > end of the lines. In FreeBSD there have to be ONLY the "CR". Delete the > first two lines and write it new (with a FreeBSD-Editor). Sometimes > you see the "LF" in the editor as a "^M", then delete the "^M". > > Hope it helps > MICHAEL GROSS alias mdgrosse@sbox.tu-graz.ac.at > > On Tue, 27 May 1997, Dmitri Baranov wrote: > > > Hello. > > I have a problem I can't resolve. > > > > 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" ? > > > > Thanks > > Dmitry Baranov > > > > > -- Gary Clark II (N5VMF) | I speak only for myself and "maybe" my company gclarkii@GBData.COM | Member of the FreeBSD Doc Team Providing Internet and ISP startups - http://WWW.GBData.com for information FreeBSD FAQ at ftp://ftp.FreeBSD.ORG/pub/FreeBSD/docs/FAQ.latin1