From owner-freebsd-questions@FreeBSD.ORG Fri Sep 9 19:01:29 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 3FCD216A41F for ; Fri, 9 Sep 2005 19:01:29 +0000 (GMT) (envelope-from bobself@charter.net) Received: from mxsf16.cluster1.charter.net (mxsf16.cluster1.charter.net [209.225.28.216]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7798443D45 for ; Fri, 9 Sep 2005 19:01:28 +0000 (GMT) (envelope-from bobself@charter.net) Received: from mxip28a.cluster1.charter.net (mxip28a.cluster1.charter.net [209.225.28.187]) by mxsf16.cluster1.charter.net (8.12.11/8.12.11) with ESMTP id j89J1R5p015807 for ; Fri, 9 Sep 2005 15:01:27 -0400 Received: from 24-177-225-234.dhcp.spbg.sc.charter.com (HELO [127.0.0.1]) ([24.177.225.234]) by mxip28a.cluster1.charter.net with ESMTP; 09 Sep 2005 15:01:28 -0400 X-IronPort-AV: i="3.96,183,1122868800"; d="scan'208"; a="195602773:sNHT14750988" Message-ID: <4321DC05.3050509@charter.net> Date: Fri, 09 Sep 2005 15:01:25 -0400 From: bob self User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: 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:01:29 -0000 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? thanks, Bob Self