On Tue, Dec 07, 2004 at 12:35:13AM -0800, 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.
>  
> Thanks.
> 

If you are running bash and have root access you should be able to change
/etc/bashrc. If there is no such file, you can create it. That is the
global rc file for bash, and it is used for all bash shells, not only
login shells.

Hope this helps.

-- 
Christer O. Andersson
Odensbacken


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