Vanilla List Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Help with Linux shell init scripts



I am trying to setup the Vanilla.spec to drop a files into /etc/profile.d so
add the /usr/games/netrek to the path (for xsg, pledit, etc).

Question #1, do we want to keep all the binaries in the LIBDIR hierarchry or
follow the Linux file system standard FFSST (or whatever it is called)?

Question #2, if we keep it in the LIBDIR, do we want the binaries to be
accessible via the PATH, when people log into the box?

Question #3, I have not been able to alter the PATH env var by sticking stuff
into /etc/profile.d, does anyone know how to do this?

Here is my "netrek shell init" script 

cat /etc/profile.d/netrek.csh
#
# netrek initialization script
#

if ($?PATH) then
  setenv PATH "${PATH}:/usr/games/netrek"
else
  setenv PATH "/usr/games/netrek"
endif


If I "source /etc/profile.d/netrek.csh" this works fine, but if I login from a
tty /usr/games/netrek is not in my path, I have to manually source the file. 

Any ideas why I cannot alter the PATH?

Is this because it is not a login shell?

I am able to alter other env vars using this method.


-- 
Bob Tanner <tanner@real-time.com>       | Phone : (612)943-8700
http://www.real-time.com                | Fax   : (612)943-8500
Key fingerprint =  6C E9 51 4F D5 3E 4C 66 62 A9 10 E5 35 85 39 D9