From owner-freebsd-questions Sat Jan 2 11:35:14 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA18735 for freebsd-questions-outgoing; Sat, 2 Jan 1999 11:35:14 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from walnut.readington.com (walnut.readington.com [207.207.198.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA18730 for ; Sat, 2 Jan 1999 11:35:12 -0800 (PST) (envelope-from chrismar@walnut.readington.com) Received: from localhost (chrismar@localhost) by walnut.readington.com (8.8.8/8.8.8) with ESMTP id OAA18064; Sat, 2 Jan 1999 14:39:17 -0500 (EST) (envelope-from chrismar@walnut.readington.com) Date: Sat, 2 Jan 1999 14:39:17 -0500 (EST) From: Chris 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 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 > 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