Hi

cpu memhd wrote:

I asked this question before but received no replies, I will ask again,
if anyone knows…

Is it possible to create environment variables in linux/unix like you
would in DOS using CONFIG.SYS or AUTOEXEC.BAT? That is, a variable that
is accessible to any subsequent running program?

I vaguely remember reading sometime back that this was not possible
because of fundamental differences between DOS/Win and Unix. While I do
know you can set environment variables in /etc/profile, the problem is
they are only accessible to a logged in user, not the system.


I believe therre are multiple approaches to this, depending on your distro and version.
SuSe used to have a file, /etc/rc.config, which was sourced from their set up environment. In more recent versions this is located in /etc/sysconfig, distributed over a multitude of configuration files. For other distros there must be similar constructs.


The problem is here, each daemon process can choose what environment it likes to import/use. And of course you are free to source these in your interactive environment.

HTH
Erich



-------------------------------------------------------
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