[GRASS5] [bug #3298] (grass) GUI stop/continue button

Hamish hamish_nospam at yahoo.com
Mon May 30 07:18:04 EDT 2005


> In 5.4 there was a handy button for stopping/continuing operation of a
> module. Could it be ported to 6.1? I found it very practical - say
> there is a v.surf.rst working which eats whole my CPU time and it is
> going to work whole day long, while I need full power just for 15
> minutes for another Grass program.
> 
> I bet this could be done with some unix commands, but having that
> stop/continue button was very usefull, easy and quick in use.


fyi, the UNIX commands you speak of:

top

then hit "r" and type in PID of process eating 99% of the CPU. Set in
the range of 1-19, where 19 means the lowest priority.
Then "q" to quit.


or before starting the run reset the current shell's priority:

renice +19 -p $$



I add this to .grass.bashrc so GRASS always runs at semi-low priority:

GRASS_PROC="`pgrep Init.sh`"
if [ -n "$GRASS_PROC" ] ; then
   renice +15 -p $$
fi


(the pgrep test isn't really needed)


Hamish




More information about the grass-dev mailing list