1825768 Members
2070 Online
109687 Solutions
New Discussion

Re: migrating paths

 
khilari
Regular Advisor

migrating paths

Hi people, well i wanted to know as to how i migrate the PATH from one system to the other. From the .profile or how?

Thanks.
1 REPLY 1
A. Clay Stephenson
Acclaimed Contributor

Re: migrating paths

There is really no way to answer that other than "it depends". HP-UX uses a file named /etc/PATH that is sourced by /etc/profile. So you should copy /etc/PATH and any sections of /etc/profile that set PATH. Next come the user's .profile's, .kshrc's, and .cshrc's. The "it depends" part come in any customizations that have been done to these files. For example, some users' .profile's might source other files that also set or prepend/append to the the existing PATH. In that case, those other files must be moved to the same locations on the new box.
If it ain't broke, I can fix that.