Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Environment 1

Status
Not open for further replies.

jo90

Programmer
Jun 19, 2002
30
GB
Hi,

Is there any file in Unix besides the .cshrc file which stores my DISPLAY environment variable?

Thanks,
Jo
 
Try $HOME/.profile, /etc/cshrc or /etc/profile

Greg.
 
if you are using csh, put it in ~/.login
------------ jamisar
Einfachheit ist das Resultat der Reife. (Friedrich Schiller)
Simplicity is the fruit of maturity.
 
Thanks, but I've tried ~.cshrc & ~.login.... found the DISPLAY variable in .cshrc and uncommented it, however when I type the env command, I still get
DISPLAY=( pc name ) - this used to be IP address before I uncommented it.... is this correct?

Thanks.
 
please be exact: NOT tilde.cshrc
BUT tilde/.cshrc
(i'm writin on a 'pc' and cannot get the tilde char)
you can put your DISPLAY var where you want, if this file is
sourced.

look for .cshrc,.login,.xinitrc,.Xdefaults and so on
you also can compound it using the output of 'who' or 'who -a'

really: what is your problem ?

------------ jamisar
Einfachheit ist das Resultat der Reife. (Friedrich Schiller)
Simplicity is the fruit of maturity.
 
You should check man csh on your system to be certain of the sequence of "." files fired when your shell starts.

From memory, for c-shell it's a system .login-type stored in the /etc (maybe /etc/cshrc). The different Unixes may vary in the sequence, but I think it's supposed to be system "." files, usually followed by private "." files in order to overlay generic system values with private, or group settings. Typically, for every "private" dot file necessary to the shell startup, there's a corresponding system-wide generic supplied. (If nothing else, the system-wide copy serves as a template for the SAs to set up new account of that shell type.

Since you mention DISPLAY, I'm assuming you're also doing X Windows, so you also have to check private and public .Xinitrc, and (I think) .xstartup.

Sorry for the long messege, but there's all sorts of places your "DISPLAY" could be hiding.

Hope this helps.

Hutch
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top