On Fri, 24 Sep 1999, James D. Lowenthal wrote:> Is there any way to "nice" an IRAF task? I'm running "drizzle" on big
> stacks of images and would like to be able to do some other things
> meantime, but it hogs the CPU and memory so much it brings the system to
> its knees. Mike wrote:> All you need to do is get the process id and execute the nice command
> in a shell escape. For example,
>
> cl> prc
> [05] pisces!23075(5A23X) HL bin$x_system.e
> 0
> 0
> 0
> cl> !nice 10 23075
>
> Would renice the x_system.e process, whose id is 23075. In your case you're
> looking for the x_drizzle executable in the prcache output.
There is an easier and more direct way, which will also get subprocesses.
First, any iraf background job (run with &
is automatically run at a nice
value of 4. To increase the nice level you can issue the command like
this: cl> <command> &10which should run the background command at a nice value of 10. - Doug