[R] R and unix tool 'screen'

Prof Brian Ripley ripley at stats.ox.ac.uk
Wed Jan 28 09:50:16 CET 2004


C-a is not a `signal' but a normal key sequence, and one used by 
readline.  However,

screen R
ctrl-a d
[detached]
screen -r

works for me apart from not having the usual meaning of crtl-a.  I don't
think R is doing anything special, but some versions of readline could 
conceivably be.

I used RH8.0 Linux for this test.  I would suggest trying R --no-readline
in case your version of readline is setting the terminal in a way that 
conflicts with your version of `screen'.

On Tue, 27 Jan 2004, Giampiero Salvi wrote:

> I have problems running R with screen. For those who don't know,
> screen is a unix tool that is quite handy if you want to leave
> a process (that outputs to tty) running when you logout, and
> then recover the session later on.
> 
> It works like this:
> 1) run 'screen': you get a normal prompt as if you were in a normal
> shell.
> 2) run whatever command you like
> 3) press 'C-a d' to detach the session. Now you can logoff if you like
> 4) when you want to recover the session type 'screen -r'
> 
> The problem is that R seems to catch the 'C-a' signal, and nothing happens.
> Since there is no way to detach the screen, there is no use to it either.
> 
> Is there a way around this problem?
> 
> Giampiero
> _________________________________________________________
> Giampiero Salvi, M.Sc.          www.speech.kth.se/~giampi
> Speech, Music and Hearing       Tel:      +46-8-790 75 62
> Royal Institute of Technology   Fax:      +46-8-790 78 54
> Drottning Kristinasv. 31,  SE-100 44,  Stockholm,  Sweden
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
> 
> 

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595




More information about the R-help mailing list