cpu memhd wrote:
Okay. I figured out an easy way to do this. I stuck this in my
/etc/init.d/rc, /etc/init.d/rcS (and /etc/profile) files:

. /etc/myenv

Putting a "." (period) was necessary otherwise the variables don't
export to the proceeding scripts. Why this is important, I don't know,
still learning Linux.

When you use the "." (period), you are 'sourcing' the file in the current scripte (ie: it's just like you typed the contents of /etc/myenv at that point in /etc/init.d/rcS).


If you omit the period and just have:
/etc/myenv

...the file gets executed as a seperate (child) process, and any changes to it's local environment are purged when the "program" exits.

--
Charles Steinkuehler
[EMAIL PROTECTED]


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
------------------------------------------------------------------------
leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html

Reply via email to