From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f8c9b,1e4dcb4d6024ba24 X-Google-Attributes: gidf8c9b,public X-Google-Thread: fee84,1e4dcb4d6024ba24 X-Google-Attributes: gidfee84,public From: idupulap@students.uiuc.edu Subject: Re: why my path can't work properly? Date: 1998/04/03 Message-ID: #1/1 X-Deja-AN: 340657786 References: <5V8V.6$R91.280679@cam-news-reader1.bbnplanet.com> Organization: University of Illinois at Urbana-Champaign Reply-To: idupulap@students.uiuc.edu Newsgroups: comp.unix.questions,comp.unix.osf.osf1 you might also want to check the executable permission of the script. Barry Margolin writes: > In article , > Bo Pan wrote: > >I am using OSF1 V4.0 alpha. my path is set as (use echo $PATH): > >/usr2/users/bpan/bin:/usr/bin:/usr/dt/bin:/usr/bin/X11:. > >there is a excutable file hello in bpan/bin, I do following: > > > >tom1 [bpan]% hello > >hello: Command not found. > > Is hello a script of some kind? This can happen if the filename in the #! > line at the beginning doesn't exist. Also, that filename has to be a full > path; the system won't search for it in PATH. > > -- > Barry Margolin, barmar@bbnplanet.com > GTE Internetworking, Powered by BBN, Cambridge, MA > *** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.