<FONT face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size=2>You could use a nice value. Man the nice and renice commands.<br><div><br></div><div><br><div><br></div><font color="#990099">-----kwlug-disc-bounces@kwlug.org wrote: -----<br><br></font><blockquote style="border-left: 2px solid #000000; padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;">To: KWLug <kwlug-disc@kwlug.org><br>From: Chris Irwin <chris@chrisirwin.ca><br>Sent by: kwlug-disc-bounces@kwlug.org<br>Date: 05/06/2009 07:31PM<br>Subject: [kwlug-disc] Clock-time limits<br><br><font face="Courier New,Courier,monospace" size="3">List, is there a way to limit the amount of clock-time a program is<br>allowed to run?<br><br>I currently use offlineimap via cron to cache my mail locally. It<br>unfortunately seems to have a habit of becoming unresponsive if it<br>happens to be active when I suspend/resume my laptop (probably the<br>network disappearing). This then causes me to not (locally) receive any<br>mail as when spawned by cron again it bails out due to the existing<br>process.<br><br>I could add 'pkill offlineimap' to the start of my wrapper script, but<br>was hoping for something more elegant.<br><br>-- <br>Chris Irwin <chris@chrisirwin.ca><br></font><font face="Courier New,Courier,monospace" size="3">_______________________________________________<br>kwlug-disc_kwlug.org mailing list<br>kwlug-disc_kwlug.org@kwlug.org<br><a href="http://astoria.ccjclearline.com/mailman/listinfo/kwlug-disc_kwlug.org">http://astoria.ccjclearline.com/mailman/listinfo/kwlug-disc_kwlug.org</a><br></font>
</blockquote><br><br>[attachment "signature.asc" removed by John van Ostrand/users/netdirect]<br></div></FONT>