Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My university gives each student a directory on their AFS which is accessible via SSH. There is a (light) CLI-driven piece of software that I would like to run continuously from the university.

I thought I could just run the software through screen via SSH, detach, then reattach from any other SSH session whenever it's CLI needed to be accessed. However, screen and tmux do not work since they depend on sockets for their functionality and sockets cannot be created on AFS space. ( see )

My account is unprivileged but has access to a toolchain that can be used to compile and run things locally.

Is there a good solution to this?

share|improve this question
Don't know what AFS is, but can you simply force the app to run in the background with a trailing & – Julian Knight Jan 21 '13 at 21:26
The application's CLI would not be accessible if you used &. – enthdegree Jan 21 '13 at 21:29
Right, that wasn't clear. – Julian Knight Jan 21 '13 at 21:32
Noted. I've edited and clarified the question – enthdegree Jan 21 '13 at 21:36

The link you posted indicates that a newer version of screen does not use your home directory, but a directory under /var, which probably is not AFS-mounted. You could install that version if need be. Likewise, tmux uses /tmp by default.

You can choose an alternate, non-AFS directory for the socket in screen (via the SCREENDIR environment variable) and in tmux (via the -S option, which takes a socket name, not just a directory, as its argument).

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .