From owner-freebsd-questions@FreeBSD.ORG Fri Sep 9 19:32:20 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C5F0D16A41F for ; Fri, 9 Sep 2005 19:32:20 +0000 (GMT) (envelope-from glenn@antimatter.net) Received: from cobalt.antimatter.net (cobalt.antimatter.net [69.55.224.239]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9BEFB43D98 for ; Fri, 9 Sep 2005 19:32:08 +0000 (GMT) (envelope-from glenn@antimatter.net) Received: from glenn-mobile.antimatter.net (216-70-228-172.cust.telepacific.net [216.70.228.172]) (authenticated bits=0) by cobalt.antimatter.net (8.13.4/8.13.4) with ESMTP id j89JW30u015126 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 9 Sep 2005 12:32:05 -0700 X-MailKey: purple frogs are falling from the sky Message-Id: <6.2.3.4.2.20050909123028.095fce00@cobalt.antimatter.net> X-Mailer: QUALCOMM Windows Eudora Version 6.2.3.4 Date: Fri, 09 Sep 2005 12:31:44 -0700 To: bob self , freebsd-questions@freebsd.org From: Glenn Dawson In-Reply-To: <4321DC05.3050509@charter.net> References: <4321DC05.3050509@charter.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Cc: Subject: Re: Can't execute a script X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Sep 2005 19:32:20 -0000 At 12:01 PM 9/9/2005, bob self wrote: >I have a simple test script called 'scripttest' in /root/bin: > >-rwxr-xr-x 1 root wheel 121 Sep 9 14:55 scripttest > >my $PATH IS > >/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:*/root/bin* > > >#!/bin/sh >echo "pinging...." >#end of scripttest > >If I run "which scripttest", I get /root/bin/scripttest > >But if I try to run this test script I get "scripttest: Command not found." > >Why is that happening? Assuming you're using csh, did you rehash after creating the script? Did you try to execute it with it's full path? like: /root/bin/scripttest -Glenn >thanks, >Bob Self > > > > >_______________________________________________ >freebsd-questions@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-questions >To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"