Operating System - HP-UX
1833460 Members
3333 Online
110052 Solutions
New Discussion

Environment Variable For CVSROOT

 
SOLVED
Go to solution
Karl Balsmeier
Advisor

Environment Variable For CVSROOT

Having installed CVS and created a repository in /usr/local/cvsrepos, I'd like to set the CVSROOT environment variable for all users, in /etc/profile.

What does the string look like if I were to add it to /etc/profile?

Is it sopmething like?:

CVSROOT=/usr/local/cvsrepos

Or is there a command I can issue that will just update he /etc/profile with the given variable? big points.

-karlski
"Unix is the Net"
3 REPLIES 3
James R. Ferguson
Acclaimed Contributor
Solution

Re: Environment Variable For CVSROOT

Hi:

This would estabish an environmental variabe CVSROOT (when place in '/etc/profile' or '$HOME/.profile'):

# export CVSROOT=/usr/local/cvsrepos

Regards!

...JRF...
Steven E. Protter
Exalted Contributor

Re: Environment Variable For CVSROOT

If you do the change to /etc/profile all users will get it. There is no need to do that and potential pitfalls.

I would do this to keep things clean

modify the users .profile fiel

add this line at the end

CVSROOT=/usr/local/cvsrepos

I really don't think the apache user needs this variable set. I know the spooladm user for openspool is a profile you NEVER want to mess with.

Caution should be used when adding to /etc/profile because all users use it.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Steven E. Protter
Exalted Contributor

Re: Environment Variable For CVSROOT

If you do the change to /etc/profile all users will get it. There is no need to do that and potential pitfalls.

I would do this to keep things clean

modify the users .profile fiel

add this line at the end

CVSROOT=/usr/local/cvsrepos
export CVSROOT
I really don't think the apache user needs this variable set. I know the spooladm user for openspool is a profile you NEVER want to mess with.

Caution should be used when adding to /etc/profile because all users use it.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com