Hi,
The current problem is that command "sh" in "rsh remotehost -l pcpqa
sh" doesn't use any environment config file of user pcpqa. So, I fail to set
the full path of pmlogger for "sh". Its default path variable is
"/bin:/usr/bin". The only way that I know is create a symbolic link of
pmlogger in folder /bin .
Do you have any good idea?
Thanks.
Sonic Zhang
-----Original Message-----
From: kenmcd@xxxxxxxxxxxxxxxxx [mailto:kenmcd@xxxxxxxxxxxxxxxxx]
Sent: 2003?1?13? 7:23
To: Zhang, Sonic
Cc: PCP (E-mail)
Subject: Re: I find the cause of the failure in case 374
On Fri, 10 Jan 2003, Zhang, Sonic wrote:
> Hi,
>
> I find the cause. The following script line in case 374 can't work
> properly, because the folder "/usr/share/pcp/bin", which "pmlogger" is in,
> is not in the default PATH environment of command "sh" of Redhat 7.3. It's
> better to use full path name "/usr/share/pcp/bin/pmlogger" instead.
Unfortunately, this will not work if pmlogger has been installed
somewhere else (remember the remote system may not be running
Linux).
This is part of the setup for the pcpqa login that I forgot to mention.
These new words now appear in the README:
The "pcpqa" user's environment must also be initialized
so that their shell's path includes all of the PCP binary
directories, so that all PCP commands are executable without
full pathnames. Of most concern would be auxilliary directory
(usually /usr/pcp/bin or /usr/share/pcp/bin) where commands like
pmlogger(1), pmhostname(1), mkaf(1), etc.) are installed.
And chk.setup now includes a check for this.
|