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 ? Thank you for your help Nils
On 2/19/07, Nils H?ller <mail at nhoeller.de> 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 ?I don't think it is possible to reattach to a process started in one ssh session from another ssh session. However, you can put a session into the background with the -f flag to ssh. You haven't told us what operating system you are starting the ssh connection on and what system will run the R process. If I had an X server running on the local system and the remote system provided X clients like xterm I would do this by ssh -X -f user at server xterm This should spring up an autonomous xterm window on the local machine after which you can run R in it. I hope this helps.
Hi, You can take a look at GNU screen programm: http://www.gnu.org/software/screen/ Andris Jankevics On Pirmdiena, 19. Febru?ris 2007 15:56, 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 ? > > Thank you for your help > > Nils > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html and provide commented, minimal, > self-contained, reproducible code.
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
Seemingly Similar Threads
- Integration + Normal Distribution + Directory Browsing Processing Questions
- question about dataframe ("sensory") in PLS package
- Capistrano fails to restart Memcached service
- Bind together two vectors of different length...
- Switchtower isn''t restarting lighttpd