From owner-freebsd-questions@freebsd.org Thu Dec 3 23:42:49 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 635ACA3E8DA for ; Thu, 3 Dec 2015 23:42:49 +0000 (UTC) (envelope-from wam@hiwaay.net) Received: from fly.hiwaay.net (fly.hiwaay.net [216.180.54.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 32699186D for ; Thu, 3 Dec 2015 23:42:48 +0000 (UTC) (envelope-from wam@hiwaay.net) Received: from kabini1.local (dynamic-216-186-213-32.knology.net [216.186.213.32] (may be forged)) (authenticated bits=0) by fly.hiwaay.net (8.13.8/8.13.8/fly) with ESMTP id tB3NgfMN030749 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Thu, 3 Dec 2015 17:42:42 -0600 Subject: Re: tcsh issue References: <56605CE0.4010105@hiwaay.net> <20151204003423.6e95c19b.freebsd@edvax.de> Cc: FreeBSD Questions !!!! From: "William A. Mahaffey III" Message-ID: <5660D371.2080000@hiwaay.net> Date: Thu, 3 Dec 2015 17:48:11 -0553.75 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <20151204003423.6e95c19b.freebsd@edvax.de> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Dec 2015 23:42:49 -0000 On 12/03/15 17:40, Polytropon wrote: > On Thu, 3 Dec 2015 09:22:18 -0553.75, William A. Mahaffey III wrote: >> >> I am having a puzzling problem w/ the tcsh shell locating a script that >> I think it should be finding: >> >> >> [wam@devbox, TEST, 9:18:10am] 1399 % which beginbg >> beginbg: Command not found. >> [wam@devbox, TEST, 9:18:21am] 1400 % set >> _ which beginbg >> > [...] >> path (/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin >> /usr/local/bin /home/wam/bin) > [...] >> [wam@devbox, TEST, 9:18:25am] 1401 % lf /home/wam/bin > [...] >> BenchMarks.tgz VectorExe.AMD64.new~* beginbg* > [...] >> [wam@devbox, TEST, 9:18:38am] 1402 % which beginbg >> beginbg: Command not found. >> [wam@devbox, TEST, 9:18:49am] 1403 % uname -a >> FreeBSD devbox 9.3-RELEASE-p30 FreeBSD 9.3-RELEASE-p30 #0: Mon Nov 2 >> 10:11:50 UTC 2015 >> root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 >> [wam@devbox, TEST, 9:19:55am] 1404 % >> >> >> i.e. the file 'beginbg' ( a shell script) appears in the file ~/bin >> (/home/wam/bin) which is in the search path, yet the shell doesn't find >> it .... Pilot error ? TIA for any clues & have a good one. > Just make sure permissions are okay (but it seems to be correct > from the completition list): > > % ls -la /home/wam/bin/beginbg > > Also make sure the shell has "picked up" a new command. Use > > % rehash > > to let the shell know about any new commands in $PATH. > > And then read "Csh Programming Considered Harmful" written by > Tom Christiansen: > > http://sc.tamu.edu/help/other/CshProgrammingConsideredHarmful.html > > I'm just saying because I once wrote a C shell script to > automatically enumerate files... ;-) Permissions were indeed the problem, which is puzzling since I copied (cp -p) the file from my linux box where it has worked for years, file was/is dated 2006, I haven't messed w/ it in ages .... Thanks :-) !!!! -- William A. Mahaffey III ---------------------------------------------------------------------- "The M1 Garand is without doubt the finest implement of war ever devised by man." -- Gen. George S. Patton Jr.