Hi, Niceload works fine, but just with the 'final' PID. When running bash scripts within bash scripts, providing only the parent's PID dosen't seem to stop the 'final' worker that is actually using the CPU.
On Fri, Oct 3, 2014 at 9:44 AM, Bruno Lucas <brunolu...@gmail.com> wrote: > Thanks for the tip. I will take a look at it. > > Cheers, > BL > > On Thu, Oct 2, 2014 at 2:32 PM, Ole Tange <o...@tange.dk> wrote: > >> On Thu, Oct 2, 2014 at 1:29 PM, Bruno Lucas <brunolu...@gmail.com> wrote: >> >> > I also use CTRL-Z by hand, but I would like to do it in another script >> (to >> > halt the processing under certain conditions). >> >> If you are doing it from a script, may I suggest you get inspired by >> niceload (which does exactly that)? >> >> niceload is distributed with GNU Parallel, so you already have it >> installed. >> >> /Ole >> > > > > -- > :-) > Bruno Lucas > -- :-) Bruno Lucas