[R] Start and Restart R over SSH
Mark Wardle
mark at wardle.org
Mon Feb 19 16:45:39 CET 2007
Nils Höller wrote:
> Hi,
>
> I have some big calculations in R to be done.
> Since I can use R on a server with ssh, i was wondering if I can reopen
> a R Shell after exiting ssh.
>
> I don't want to use the batch mode and nohup doesn't work.
>
> I want to use something like
> ssh user at server
> R
> ---do something in R and start calculation ---
> close ssh but let R remain on the server, doing the calculation
>
> ssh user at server
> open the existing R Shell / Process
>
> Has anyone done something similiar?
> Can you help me or suggest an other solution ?
>
Use "screen" http://www.gnu.org/software/screen/
1. Login to remote server
2. Run screen
3. Run R, and the long calculation
4. Detach screen (Ctrl-A, Ctrl-D)
5. Logout
Then you may login to server again, re-attach to the running screen and
carry on!
Best wishes,
Mark
--
Specialist Registrar and Clinical research fellow
Department of Neurology
Cardiff & Vale NHS Trust and Cardiff University
More information about the R-help
mailing list