From owner-freebsd-questions Tue May 27 08:43:34 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id IAA18563 for questions-outgoing; Tue, 27 May 1997 08:43:34 -0700 (PDT) Received: from freespeech.tu-graz.ac.at (freespeech.tu-graz.ac.at [129.27.193.130]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id IAA18549 for ; Tue, 27 May 1997 08:43:29 -0700 (PDT) Received: (from mdgrosse@localhost) by freespeech.tu-graz.ac.at (8.6.11/8.6.9) id RAA08286; Tue, 27 May 1997 17:38:36 +0200 Date: Tue, 27 May 1997 17:38:36 +0200 (MET DST) From: MICHAEL GROSS X-Sender: mdgrosse@freespeech.tu-graz.ac.at To: Dmitri Baranov cc: "freebsd-questions@FreeBSD.ORG" Subject: Re: Perl script In-Reply-To: <338AF41E.E944C3F8@stv.ee> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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 > >