On Mon, Oct 19, 2009 at 3:21 PM, Barry Rowlingson <b.rowling...@lancaster.ac.uk> wrote: > On Mon, Oct 19, 2009 at 2:01 PM, Karl Ove Hufthammer <k...@huftis.org> wrote: > >> If you start the application using the command line, just press >> 'Ctrl + Z' to pause/suspend it. Then type 'fg' when you want to >> resume it. > > If you can't get to the command line where you started R, then you > can send the process the 'STOP' and 'CONT' signals using the 'kill' > command. You need to get the process ID (see "man ps" for this) and > then use "kill -STOP 12345" and "kill -CONT 12345" where 12345 is the > process ID.
That is how it works - that is ALLY good to know. > > Quite what happens if you are running multiple R threads via the > multicore package or any of the other multiple process packages... I > don't know... > > Of course the real answer is to run long processes on a server - > preferably one with an uninterruptible power supply and a diesel I agree - that is the best way of doing it (and I am using a cluster), but if there is none, a simulation, activated in the evenings, and paused in the mornings, via a cron job, is an interesting thing to play with. > generator - or make your process checkpointable so you can kill it and > restart it again. Checkpoints - have thought about it for a few times, but dismissed as beeing to complicated for my cases. Rainer > > Barry > > ______________________________________________ > 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. > -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Natural Sciences Building Office Suite 2039 Stellenbosch University Main Campus, Merriman Avenue Stellenbosch South Africa Cell: +27 - (0)83 9479 042 Fax: +27 - (0)86 516 2782 Fax: +49 - (0)721 151 334 888 email: rai...@krugs.de Skype: RMkrug Google: r.m.k...@gmail.com ______________________________________________ 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.