Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Jan 1999 14:39:17 -0500 (EST)
From:      Chris  <chrismar@walnut.readington.com>
To:        Chris Browning <brownicm@netunlimited.net>
Cc:        questions@FreeBSD.ORG
Subject:   Re: executable scripts
Message-ID:  <Pine.BSF.4.05.9901021437180.18056-100000@walnut.readington.com>
In-Reply-To: <XFMail.990102142602.brownicm@netunlimited.net>

next in thread | previous in thread | raw e-mail | index | archive | help
You probably don't have the script in your path.  To execute the script
from within the directory tyope ./script, notice the ./ before.

Or, an easier approch would be to add . to your path, that will always
make your current directory be in your path

Chris

On Sat, 2 Jan 1999, Chris Browning wrote:

> I admit to feeling _really_ dumb asking this. After working through ppp,
> XWindows config, a kernel re-compile and some other stuff with no or minimal
> help, I can't figure out why I can't make a script executable.
> 
> I use vi to create a script in a given directory, save it, chmod 755 to set
> permissions, I haven't changed directories, I ls -l to double-check and then
> type in the name of the script. I get "command not found". I've tried sh, csh
> and bash. I've tried different users and root. I've tried man sh, man csh, etc.
> I keep getting the feeling there's something just beyond my fingertips. The last
> time I did this was in a class about a year ago using zsh on AIX. Write the
> script, set the permissions and go. Please tell me what I've missed. Thanks. 
> ----------------------------------
> E-Mail: Chris Browning <brownicm@netunlimited.net>
> Date: 02-Jan-99
> Time: 13:54:59
> 
> This message was sent by XFMail
> ----------------------------------
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
> 


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?Pine.BSF.4.05.9901021437180.18056-100000>