Path: utzoo!attcan!uunet!cs.utexas.edu!rutgers!mephisto!prism!gt0178a From: gt0178a@prism.gatech.EDU (BURNS) Newsgroups: comp.unix.questions Subject: Re: Which script (was Re: comp.unix.questions) Message-ID: <13838@hydra.gatech.EDU> Date: 19 Sep 90 07:04:43 GMT References: <571@DIALix.UUCP> Organization: Georgia Institute of Technology Lines: 36 in article <571@DIALix.UUCP>, bernie@DIALix.UUCP (Bernd Felsche) says: [supplies expanded which script] I saved your script as I thought it was an interesting piece of work, but I will point out a couple of problems: 1) The easy one was my (Dynix's) version of sh didn't like your syntax for test(1), so I used ksh. 2) If you do (your script is called wh): wh wall # you get: wall not found Similarly, w/ the system supplied which: which wall # you get: no wall in . /hydra9/gt01/gt0178a /usr/local/bin /usr/ucb /bin /usr/bin /usr/att/bin /usr/att/usr/bin which is of course my path. Finally, the system supplied (at least for me) whereis gives: ll `whereis wall` # you get: wall: not found -rwxr-x--- 1 root 20480 May 21 1988 /bin/wall* -r--r--r-- 1 root 984 May 21 1988 /usr/man/man1/wall.1 Ignore the 1st line, unless it is the only one. Obviously wall is failing the executable test in the 1st 2 commands. Moral - don't stick to one tool (there are lots of things whereis can't find). -- BURNS,JIM Georgia Institute of Technology, Box 30178, Atlanta Georgia, 30332 uucp: ...!{decvax,hplabs,ncar,purdue,rutgers}!gatech!prism!gt0178a Internet: gt0178a@prism.gatech.edu