[R] running a long R process on Linux using putty - best practice to disconnect
Uwe Ligges
ligges at statistik.tu-dortmund.de
Thu Oct 14 19:21:30 CEST 2010
On 14.10.2010 18:07, Martin Tomko wrote:
> Dear all,
> I am sure this has been solved before, googling did not help much,.
> Warning, I am not great with putty/linux servers
>
> Situation: I have been given access to an R installation on a Linux
> server to do some larger number crunching that was killing my machine. I
> use putty to connect, and then go R, source("myscript") and all is fine
> But this will take potentially days, and I would like to disconnect
>
> What is the best practice? Someone mentionne nohup, but this would
> require starting the R script with an argument to R, I think. Is this
> doable?
Right, just do
nohup R CMD BATCH myscript.R &
and make sure you save all relevant results into files within myscript.R
Uwe Ligges
> Another option was using screen, btu that is not available on the server.
> Any help is welcome.
>
> Thanks
> Martin
>
> ______________________________________________
> R-help at 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.
More information about the R-help
mailing list