Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 May 1997 01:44:06 -0500 (CDT)
From:      Gary Clark II <gclarkii@main.gbdata.com>
To:        mdgrosse@sbox.tu-graz.ac.at (MICHAEL GROSS)
Cc:        dima@stv.ee, freebsd-questions@FreeBSD.ORG
Subject:   Re: Perl script
Message-ID:  <199705290644.BAA05936@main.gbdata.com>
In-Reply-To: <Pine.BSF.3.91.970527173138.3576C-100000@freespeech.tu-graz.ac.at> from MICHAEL GROSS at "May 27, 97 05:38:36 pm"

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199705290644.BAA05936>