LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Can I change the SIGNAL done when ulimit is reached? (https://www.linuxquestions.org/questions/linux-newbie-8/can-i-change-the-signal-done-when-ulimit-is-reached-871985/)

sctebnt 03-30-2011 04:05 PM

Can I change the SIGNAL done when ulimit is reached?
 
I would like to use ulimit -St <some number> to stop a process form running once the process has exceeded the amount of CPU time specified in the ulimt arg.

I have been able to get ulimit -t (or -Ht) to kill my process, but I need the signal to be something other than 9 and other than SIGXCPU.

Is there a way to have ulimit issue a kill -<somthing else> when the cpu time specified has been exceeded?

Thanks in advance for your help!

rfelsburg 04-11-2011 10:32 AM

Not directly with ulimit however I can see using a bash script and doing this in an indirect way. With a little more info, we can probably get one hammered out.


All times are GMT -5. The time now is 08:27 AM.