You are not logged in.

#1 2006-07-29 10:54:07

n0gabor
Member
From: Hungary / Budapest
Registered: 2006-02-10
Posts: 95

/etc/profile.d/foo.sh--adding it immediately without restart

The programs installs in /opt has a script file in /etc/profile.d/ to set the enviromental variables and etc. for them. These scripts run at the init...on the next restart.

Is there any way to add these scripts to the system-wide profile immediately?

Offline

#2 2006-07-29 10:57:01

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: /etc/profile.d/foo.sh--adding it immediately without restart

sourcing it should be all that you need. source /etc/profile.d/foo.sh

Offline

#3 2006-07-29 16:45:27

n0gabor
Member
From: Hungary / Budapest
Registered: 2006-02-10
Posts: 95

Re: /etc/profile.d/foo.sh--adding it immediately without restart

man source:
source - Evaluate a file or resource as a Tcl script

is this what you mean?

Offline

#4 2006-07-29 18:41:07

codemac
Member
From: Cliche Tech Place
Registered: 2005-05-13
Posts: 794
Website

Re: /etc/profile.d/foo.sh--adding it immediately without restart

Anything you put in /etc/profile.d/ will be "sourced" or read through and run, every time you open a login shell.  So you can either re-log to have it loaded, or you can just run `. /etc/profile.d/foo.sh` in a shell.

Offline

Board footer

Powered by FluxBB