Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: xstata user preferences, via ssh with X forwarding: any tips?

From   Dave Ewart <>
Subject   st: xstata user preferences, via ssh with X forwarding: any tips?
Date   Thu, 20 May 2010 10:35:21 +0100


When running xstata remotely over ssh using X forwarding, user
preferences may be stored in


where 'localhost:12.0' is the value of the DISPLAY environment variable
for that session.

Next time one logs in, DISPLAY will probably be different, so xstata
looks for settings in, say,


This means, in effect, that xstata does not reliably save settings from
one session to next which is rather annoying.

I am aware of two possible workarounds:

1. Make use of the Open/Save preferences facility: this will allow all
of a user's settings to be loaded; however it must be run manually at
the start of each session.  Also, one must remember to manually *save*
new settings too;

2. Engineer some complicated script which will endeavour to keep the
contents of


synchronised.  This is a bit hacky, to be honest, and might be hard to

What I'd really like is some means of doing one of the following two

1. Ideally, change xstata's settings path to something I choose -
specifically so that it doesn't include the DISPLAY setting and is fixed
from session to session.  Is that possible?

2. Find a command-line equivalent of the 'Open/Save Preferences'
operations so that they could be included in a startup
command sequence.  Documentation suggests nothing like this exists, is
that true?

All suggestions welcome...



Dave Ewart
Computing Manager, Cancer Epidemiology Unit
University of Oxford / Cancer Research UK
N 51.7516, W 1.2152
*   For searches and help try:

© Copyright 1996–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index