From owner-freebsd-questions Sat Jan 2 11:32:04 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA18368 for freebsd-questions-outgoing; Sat, 2 Jan 1999 11:32:04 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from java.dpcsys.com (java.dpcsys.com [206.16.184.7]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA18363 for ; Sat, 2 Jan 1999 11:32:02 -0800 (PST) (envelope-from dan@dpcsys.com) Received: from localhost (dan@localhost) by java.dpcsys.com (8.9.1a/8.9.1) with SMTP id LAA10045; Sat, 2 Jan 1999 11:31:58 -0800 (PST) Date: Sat, 2 Jan 1999 11:31:58 -0800 (PST) From: Dan Busarow To: Chris Browning cc: questions@FreeBSD.ORG Subject: Re: executable scripts In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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