Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!cs.utexas.edu!uunet!wugate!wupost!kuhub.cc.ukans.edu!anu-news!list From: EALYON@SUNRISE.BITNET (Edward A. Lyon) Newsgroups: news.software.anu-news Subject: RE: Avoiding multiple simultaneous jobs... Message-ID: Date: 21 Jul 89 18:33:00 GMT Sender: ANU-NEWS Discussion Reply-To: "Edward A. Lyon" Lines: 16 Original_To: BITNET%"ANU-NEWS@NDSUVM1" > Date: Fri, 21 Jul 89 05:43:00 EDT > From: DENVER BRAUGHLER > >>In article <2753@zeus.unl.edu>, UNOCC07@UNOMA1.BITNET (Dave Caplinger) writes: >>>> Does anybody know an easy way to modify the com file so that it can >>>> dectect if another HOURLY job is still executing and if so, how to resubmit >>>> the next job for a later time? >>> How about moving the SUBMIT command to the end of the HOURLY.COM? > > How about running every thing thru a separate batch queue, say, anu_que? > $INIT/BATCH/QUE ANU_QUE/JOB_LIMIT=1 !/RETAIN=ERROR > Then at the TOP of the program $ SHO QUE ANU_QUE/ALL/OUTPUT=Q.LIS > [and SEARCHing or READing the output to parse it for relevant information] Why not use the F$GetQUI lexical function that comes with VMS V5.0? If you're running NEWS 5.8 or later, you have to have V5, anyway.