in reply to Re: Limiting script cpu time
in thread Limiting script cpu time

i think he/she's after not taking up too much % cpu time; not to kill the script after it's done half the image. this can be achieved with "nice" unix command. i don't know of a module that can do same from within perl. there is a module kstat which will give you current cpu load for processes, so you could parse that for your process id and do a few waits if high