1832953 Members
2721 Online
110048 Solutions
New Discussion

/usr/dt/bin/Xsession

 
Stuart Powell
Super Advisor

/usr/dt/bin/Xsession

A previous sys admin modified /usr/dt/bin/Xsession file, which all of our Xterminals use when logging into our Serviceguard package. I would like to put the Xsession file in a location where it will NOT be overwritten when applying patches. Where do I do the redirection? What would be a good location to put the file? Any input would be appreciated.
Sometimes the best answer is another question
3 REPLIES 3
harry d brown jr
Honored Contributor

Re: /usr/dt/bin/Xsession


Why not create a copy:

cp -p /usr/dt/bin/Xsession /usr/dt/bin/ORIG_Xsession

You really want the patch to laydown a new Xsession file so that you can compare the two for any new elements you might want to take advantage of.

live free or die
harry
Live Free or Die
Stuart Powell
Super Advisor

Re: /usr/dt/bin/Xsession

Harry,

That has already been done. The problem is remembering to look there after applying the patches. There should be a way to redirect the Xterms to use a different Xsession file, within the dtlogin structure. I'm just not aware of how to do that.
Sometimes the best answer is another question
Simon Abbott
Frequent Advisor

Re: /usr/dt/bin/Xsession

Hello,

The path of the Xsession file is set by Xconfig. You could set this to a customised name therefore bypassing the default file. (Whether the Xconfig file may get overwritten I do not know). Depending on what the settings are in your file, you could also set them somewhere else, for example, the users .dtprofile.

All in all, I agree with harry regarding the patch installing a new file. There is probably a good reason the patch is doing this and it may cause more problems. How about just adding the edits to the file (or just a reminder) in your system procedures documentation?

Simon.
I'm still working on that one