strausy
asked on
pico not found
I have installed pine on a Solaris 2.6 server in /opt/UWpine. I have set the /etc/profile to include the following
PATH=$PATH:/opt/netscape:/ opt/UWpine /bin:.;exp ort PATH
Now, when I telnet to the machine and try to run pico, which is in /opt/UWpine/bin it tells me "pico not found" but when I'm actually on the machine, pico runs just fine. I am logged on as root in both instances.
Any ideas?
PATH=$PATH:/opt/netscape:/
Now, when I telnet to the machine and try to run pico, which is in /opt/UWpine/bin it tells me "pico not found" but when I'm actually on the machine, pico runs just fine. I am logged on as root in both instances.
Any ideas?
Are you sure you put the PATH statement in the right place in /etc/profile (not inside a conditional)? Are you actually logging in remotely as root or as some other user and "su"ing to root (that user's .profile might be resetting PATH)?
Check to see what your path is when you telnet in as root with "echo $PATH", I think you will discover what the problem is. Try putting the path in $HOME/.bash_profile .
ASKER
I'm logging on as myself, then su root - ing.
I thought /etc/profile was the "global profile."
When I just su root, the path to /opt/UWpine/bin is not present, however if I su - root (with a dash) it is present and works.
So I guess I'm putting this in the wrong place? I logged onto another solaris box and I can use pico with any user and there is nothing in /etc/profile.
I'm a bit unfamiliar with Unix, what/where exactly would $HOME/.bash_profile be?
I thought /etc/profile was the "global profile."
When I just su root, the path to /opt/UWpine/bin is not present, however if I su - root (with a dash) it is present and works.
So I guess I'm putting this in the wrong place? I logged onto another solaris box and I can use pico with any user and there is nothing in /etc/profile.
I'm a bit unfamiliar with Unix, what/where exactly would $HOME/.bash_profile be?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.