Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 May 1997 17:38:36 +0200 (MET DST)
From:      MICHAEL GROSS <mdgrosse@sbox.tu-graz.ac.at>
To:        Dmitri Baranov <dima@stv.ee>
Cc:        "freebsd-questions@FreeBSD.ORG" <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Perl script
Message-ID:  <Pine.BSF.3.91.970527173138.3576C-100000@freespeech.tu-graz.ac.at>
In-Reply-To: <338AF41E.E944C3F8@stv.ee>

next in thread | previous in thread | raw e-mail | index | archive | help
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
> 
> 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.970527173138.3576C-100000>