Re: [R] Get back to the console with ssh access

2009-12-04 Thread Jakson A. Aquino
On Fri, Dec 04, 2009 at 02:23:18AM +0100, Timothée Poisot wrote:
 I am currently learning how to work with a new shared computer (a Mac pro) in 
 our lab, that is dedicated to execute R code for large simulations (over a 
 few days).
 
 We have a VNC option to remote control the computer, with a shared used 
 session, but this is not really needed in most of the cases. I would like to 
 do some ssh access.
 
 This is pretty straigthforward, and I am able to launch commands using
 
 R -e 'source(myfile.R)' 
 
 However, it could be useful to check the advancement of the computation from 
 time to time, again via ssh.
 
 Is there any way to do this?

On Linux you can type in the terminal (I guess the command will
work in Mac too):

tail -f myfile.Rout

Then you hit Ctrl+C to stop tail from following myfile.Rout.

Another option would be the use of screen (again, this is a *nix
solution that may be available to Mac too). With screen you can
run R interactively detach the session, logout, come back and
reattach the session. But it seems that tail -f is what you
really needs since the R script is finished and you just need to
run it.

-- 
Jakson

__
R-help@r-project.org 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.


[R] Get back to the console with ssh access

2009-12-03 Thread Timothée Poisot
Dear R users,

I am currently learning how to work with a new shared computer (a Mac pro) in 
our lab, that is dedicated to execute R code for large simulations (over a few 
days).

We have a VNC option to remote control the computer, with a shared used 
session, but this is not really needed in most of the cases. I would like to do 
some ssh access.

This is pretty straigthforward, and I am able to launch commands using

R -e 'source(myfile.R)' 

However, it could be useful to check the advancement of the computation from 
time to time, again via ssh.

Is there any way to do this?

Regards,
Timothée Poisot



--
Timothée POISOT
-
Institut des Sciences de l'Evolution
Université Montpellier 2, CC 065
Place Eugène Bataillon
34095 Montpellier CEDEX 5
-
Phone   :   (+33)4 67 14 40 61
Fax :   (+33)4 67 14 40 61
E-mail  :   tpoi...@um2.fr
Web :   http://www.timotheepoisot.fr/
--


[[alternative HTML version deleted]]

__
R-help@r-project.org 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.