Hi,
I try to define global var assuming that I can acces it from multiple sessions/terminal windows, but I can't do this with either comand line or script delcaratino/export. I'm not a root user doing this, but is this should not be matter.
Even if I do this lines below in script, being in the very same terminal session I can't see this LX_PATH value? Is it right?
I read and assumed that <export var> should take care of it.
Is it possible to make it visible somehow? my script issues this lines, and I want to have this value accros the server accessing it thru sript ot terminal. I'm on Fedora 14.
Where do you define the above variable and export..? Try placing the variable in .profile file under home directory for it to be visible in your current session or place it in /etc/profile to be visible for any sessions. This is with respect to SuSe Linux, im not sure on Fedora. But its just an heads-up.
Add to ~/.bashrc
export LX_PATH=dir1/dir2/dir3:dir4/dir5
That will make it available for you in every interactive not login shell, and in any login session as long as ~/.bashrc is sourced in ~/.profile or ~/.bashrc_profile
Thanks all guys,
Yes I see that if you make in .profile or bashrc ,it works all accross the server, but I have this declaration in one start up script which suppose to set some LX_LIBRARY path for odbc connection and surely it doesn't work, so I'm checking this. Not sure in what cases <export var> from the shell can help, only for children processes and within same term session?
If script starts by cron, who can use this var?
Hi,
If I change date and time in global zone, then it will affect in non global zones.
During this process what files will get affect in non global zones and which mechanism it's using to change.
gloabl zone:Solaris 11.3 X86
TIA (1 Reply)
hi all,
Just a simple question but i cant get the answers in the book -
In my globalzone , assuming i have 4 cpus (psrinfo -pv = 0-3), if i set dedicated-cpu (ncpus=2) for my local zone
Is my globalzone left with 2 cpus or still 4 cpus ? Does localzone "resource reservation.e.g. cpu in... (6 Replies)
Hello...
I'm trying to setup a cronjob to record system data using glance at certain times of the day. My question is, how would one export the "Global System Calls" information to a file? Below is the command I have been using and it works to export CPU information.
glance -f ... (0 Replies)
Hi,
I have Solaris zone configured with Solaris 9 and 10.
In Solaris 10(non global), I use the command “zonename” to get whether it is global or non-global server.
For Solaris 9, what command I can use to get whether it is global or non-global server.
Regards,
Kalai :confused: (25 Replies)
Hi Guys,
My requirement is I have file called /opt/orahome/.profile in non global zone.
PATH=/usr/bin:/usr/ucb:/etc:/usr/sbin:/usr/local/bin:/usr/openwin/bin:.
export PATH
PS1="\${ORACLE_SID}:`hostname`:\$PWD$ "
export PS1
EDITOR=vi
export EDITOR
ENV=/opt/orahome/.kshrc
export ENV... (1 Reply)