Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: richk@panix.com (Rich Kus)
Subject: why my path can't work properly?
Date: 1998/04/03	[thread overview]
Message-ID: <6g33d8$h0q@panix2.panix.com> (raw)
In-Reply-To: Pine.A32.3.95.980402010117.73124B-100000@unix1.sncc.lsu.edu


In article <Pine.A32.3.95.980402010117.73124B-100000@unix1.sncc.lsu.edu>,
Bo Pan   <bpan@unix1.sncc.lsu.edu> 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:
>
I am just guessing below because I don't know what the program hello
looks like?:

you may want to edit your PATH from:
	PATH=/usr2/users/bpan/bin:/usr/bin:/usr/dt/bin:/usr/bin/X11:.
to:
	PATH=/usr/bin:/usr/dt/bin:/usr/bin/X11:/usr2/users/bpan/bin:.

	your script is having trouble finding commands because paths were not
	declare before running hello. 

>tom1 [bpan]% hello
>hello: Command not found.
>tom1 [bpan]% which hello
>/usr2/users/bpan/bin/hello
>tom1 [bpan]% 
>tom1 [bpan]% /usr2/users/bpan/bin/hello
>
>run properly.
>what's the problem?
>if I telnet to tom1 from other machine, no such problem.
>
>by the way, what is the difference between $path and $PATH?
>echo $path

  path  is used by csh and tcsch.

>echo $PATH
 
	 PATH is used by bourne shell family such as sh, ksh, bash

>display same paths but different format.
>and in script, the difference is event bigger. how to use them?
>
>thanks in advance.
>
>Bo
>

 richk






  parent reply	other threads:[~1998-04-03  5:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-04-02  5:00 why my path can't work properly? Bo Pan
1998-04-02  5:00 ` Nikola Milutinovic
1998-04-02  5:00 ` Dan A. Mercer
1998-04-03  5:00 ` Rich Kus [this message]
1998-04-03  5:00 ` Barry Margolin
1998-04-03  5:00   ` idupulap
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox