From: Glen Holcomb Date: 2008-12-05T02:53:45+09:00 Subject: Re: Force a program to stop if runtime exceeds given duration ------=_Part_12970_15414976.1228413580986 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Thu, Dec 4, 2008 at 10:39 AM, Aldric Giacomoni <"aldric[remove]"@ trevoke.net> wrote: > I don't need atomic precision - I need to stop a task that runs overnight > (being 5 minutes off would not be a problem) so that it's not still running > when a user gets to their machine. > I did a search on 'real-time computing' but got nothing relevant to me - > maybe I did the search wrong.. ? > > Glen Holcomb wrote: > >> [Note: parts of this message were removed to make it a legal post.] >> >> On Thu, Dec 4, 2008 at 10:04 AM, Aldric Giacomoni <"aldric[remove]"@ >> trevoke.net> wrote: >> >> Any idea how to do that? >>> Say, I don't want a program to run longer than 5 hours.. How would that >>> be >>> implemented? >>> >>> --Aldric >>> >>> >>> There are various methods for real time computing. It really depends on >> how >> exact you want to be. >> >> > If there is a chance that your process will be blocking for whatever reason you could always write one script that launches the other process and after 5 hours looks for the process it started and kills it then exits. That isn't super clean but would work. -- "Hey brother Christian with your high and mighty errand, Your actions speak so loud, I can't hear a word you're saying." -Greg Graffin (Bad Religion) ------=_Part_12970_15414976.1228413580986--