Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!bloom-beacon!oberon!cit-vax!ucla-cs!zen!ucbvax!MORGUL.PSC.EDU!David.Gentzel From: David.Gentzel@MORGUL.PSC.EDU Newsgroups: comp.os.vms Subject: Re: run myprog/topcpu=? Clarification Message-ID: <561436490.gentzel@morgul.psc.edu> Date: Fri, 16-Oct-87 23:34:00 EDT Article-I.D.: morgul.561436490.gentzel Posted: Fri Oct 16 23:34:00 1987 Date-Received: Sun, 18-Oct-87 10:02:46 EDT Sender: usenet@ucbvax.BERKELEY.EDU Organization: The ARPA Internet Lines: 20 >[...] >What I would like to be able to do is say $ RUN MYPROGRAM/TOPCPU=50:30 >for example, so that myprogram will only run for 50 minutes, 30 >seconds of cpu. The time does not have to be dead on, anything >reasonable close would be ok. The reason is simple ..... we have a >number of programs which under certain conditions, spin their wheels >forever. >[...] One possibility is to create an account for the task you wish to perform and give it an appropriate CPU limit. When the limit is reached, the process is killed. Another possibility is to write a simple program which calls $CREPRC to create a process to run your task. $CREPRC can be given a CPU limit. Hope this helps. Internet: gentzel@morgul.psc.edu Dave Gentzel BITnet: gentzel@cpwpsca Pittsburgh Supercomputing Center