Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Mar 1999 10:51:15 -0600
From:      Alan Weber <aaweber@austin.rr.com>
To:        Kenneth Legg <sce04020@mail.wvnet.edu>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: vi: command not found
Message-ID:  <19990314105115.A3272@austin.rr.com>
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.

use 
./script
to execute the script or (very bad practice) add . to your path. This current
directory behaviour is one of the reasons that the M$ world is so infested with
viruses.

-- 
When I was a kid I had to rub sticks together to multiply and divide numbers. 
A calculator was a job description.


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?19990314105115.A3272>