Solutions

How to configure a Linux/UNIX machine so local users are automatically configured to run PVCS Version Manager commands



ID:    S143415
Published:    02 April 2021

Operating System(s)

  • All Unix

Product(s)

  • PVCS Version Manager
 

Description

Before they can run any PVCS Version Manager command, users have to source the vmprofile or vmcshrc file based from whatever shell the user is using, to add the VM directories to the user's search PATH and setup a number of environment variables.
 
  • Users of a sh/ksh/bash shell should run:

    . VM_install_dirctory/vm/linux/bin/vmprofile
     
  • Users of a csh/zcsh shell should run:

    source VM_install_dirctory/vm/linux/bin/vmcshrc

 
This has to be done every time after a login, unless these commands are added to the user's shell login file.
 
How can I configure the machine so this step is automatically performed for all of its local users, removing the need for them to either manually run these command or edit their login files.

Resolution

You can apply these settings systems-wide by running the following commands as root:
 
ln -s VM_install_dirctory/vm/OS_dir/bin/vmprofile /etc/profile.d/pvcsvm.sh
ln -s VM_install_dirctory/vm/OS_dir/bin/vmcshrc /etc/profile.d/pvcsvm.csh
 
Example:
 
ln -s /usr/microfocus/vm/linux/bin/vmcshrc /etc/profile.d/pvcsvm.csh
ln -s /usr/microfocus/vm/linux/bin/vmprofile /etc/profile.d/pvcsvm.sh
 
With these symbolic links in place, the PVCS VM profile will be loaded for all users of the systems once they login.

 


Rate this Solution

Find Answers

Type a question or describe what you are looking for below

My Recent Searches

Welcome kb sso

Additional Assistance

  • Submit a Case Online
  • FAQs