Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Jan 1999 11:31:58 -0800 (PST)
From:      Dan Busarow <dan@dpcsys.com>
To:        Chris Browning <brownicm@netunlimited.net>
Cc:        questions@FreeBSD.ORG
Subject:   Re: executable scripts
Message-ID:  <Pine.BSF.3.96.990102113048.11139G-100000@java.dpcsys.com>
In-Reply-To: <XFMail.990102142602.brownicm@netunlimited.net>

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

That your current directory is not in $PATH
Try running script_name as

$ ./script_name

Dan
-- 
 Dan Busarow                                                  949 443 4172
 Dana Point Communications, Inc.                            dan@dpcsys.com
 Dana Point, California  83 09 EF 59 E0 11 89 B4   8D 09 DB FD E1 DD 0C 82


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.3.96.990102113048.11139G-100000>