1833248 Members
2851 Online
110051 Solutions
New Discussion

/etc/SHLIB

 
kenneth kahn_3
New Member

/etc/SHLIB

My understanding is that the files PATH, MANPATH and SHLIB_PATH on /etc are used to set initial global values of these variables for all users (right?).

This is occuring without problem for PATH.

However, what I set up for SHLIB_PATH is not being picked up by any user. I noticed that in /etc/profile, there's some code to explicitly EXPORT the value for MANPATH, so I added a similar section for SHLIB_PATH. This also seems to fail; i.e. both PATH and MANPATH are picked up from the files, but SHLIB_path aren't.

Am I doing something wrong or not understanding something.
Shouldn't the value from the
/etc/SHLIB_PATH file be picked up as the global user default?
6 REPLIES 6
Pete Randall
Outstanding Contributor

Re: /etc/SHLIB

In the case of PATH and MANPATH, these are parsed during /etc/profile:

export PATH=`cat /etc/PATH`
export MANPATH=`cat /etc/MANPATH`

It seems to me you might have to do the same with SHLIB_PATH?


Pete

Pete
Steve Steel
Honored Contributor

Re: /etc/SHLIB

Hi


please post your /etc/profile


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
F. X. de Montgolfier
Valued Contributor

Re: /etc/SHLIB

Hi,

I don't think I have ever heard that SHLIB_PATH should behave as a global template:
I've always seen it used as a template *that would be called in /etc/profile*:

# Set SHLIB_PATH to the contents of /etc/SHLIB_PATH , if it exists.

if [ -r /etc/SHLIB_PATH ]
then
SHLIB_PATH=`cat /etc/SHLIB_PATH`
fi
export SHLIB_PATH


If you're using csh, you may want to use it in /etc/csh.login:

if ( -r /etc/MANPATH ) then
setenv MANPATH `cat /etc/MANPATH`
endif


Cheers,

FiX

kenneth kahn_2
New Member

Re: /etc/SHLIB

I have to change my scenerio. What's not working is DTTERM. I'm starting a dtterm session via CDE and that's what's not
picking up the value of SHLIB_PATH. If I telnet directly into the system and use sh or similar, then it works OK.

So I should change my question to what is the dtterm equivalent of profile; is it .dtprofile?
Pete Randall
Outstanding Contributor

Re: /etc/SHLIB

Ken,

Here's what we use in .dtprofile:

DTSOURCEPROFILE=true
. /etc/profile;
. $HOME/.profile;
. /etc/vueprofile


Pete

Pete
Steve Steel
Honored Contributor

Re: /etc/SHLIB

Hi


There are options in CDE


1)make for the local user a .Xdefaults file with

*loginShell: true


2)Machine wide enable the "loginShell" resource for the terminal emulators by creating sys.resources (chmod 644) in
/etc/dt/config/C/ containing: *loginShell: True


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)