Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Mar 1999 16:51:04 +0000
From:      Mark Ovens <marko@uk.radan.com>
To:        Kenneth Legg <sce04020@mail.wvnet.edu>
Cc:        BSD mailing list <FreeBSD-questions@freebsd.org>
Subject:   Re: vi: command not found
Message-ID:  <19990314165104.A247@marder-1.localhost>
In-Reply-To: <36EBDEDB.89E7A40D@mail.wvnet.edu>; from Kenneth Legg on Sun, Mar 14, 1999 at 11:07:55AM -0500
References:  <36EBDEDB.89E7A40D@mail.wvnet.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Mar 14, 1999 at 11:07:55AM -0500, Kenneth Legg wrote:
> I write a script in vi and make it executable, using chmod +x filename
> or chmod 777 filename, but when I try to execute the script by typing
> the script name I
> get the error message: Command not found. What am I doing wrong.
> 

Is the script in a directory in your PATH environment variable?

Are you using csh as your shell?  If so, try typing ``rehash'' then
the script name.

-- 
      FreeBSD - The Power To Serve http://www.freebsd.org
      My Webpage http://www.users.globalnet.co.uk/~markov
_______________________________________________________________
Mark Ovens, CNC Apps Engineer, Radan Computational Ltd. Bath UK
CAD/CAM solutions for Sheetmetal Working Industry
mailto:marko@uk.radan.com                  http://www.radan.com



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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