Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!uhccux!munnari.oz.au!otc!metro!basser!usage!decus!wadem From: wadem@decus.com.au (Malcolm Wade) Newsgroups: news.software.anu-news Subject: Re: QUEUE checking for hourly SKIM Message-ID: <455@decus.com.au> Date: 27 Jul 89 02:49:04 GMT References: <34@mscf.med.upenn.edu> Organization: DECUS, South Pacific Chapter Lines: 27 In article <34@mscf.med.upenn.edu>, ross@mscf.med.upenn.edu writes: > We ran into the following problem yesterday. We have a batch job > called HOURLY.COM which runs every hour to SKIM. The first line of > HOURLY.COM is a SUBMIT commmand to resubmit HOURLY at time+1 hr. The problem > occured when the server that we access went down and the first hourly job was > not completed when the second one started running. Then in a short time we > had 3 of these hourly jobs running at once. > 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? There's been a few answer posted to this one - all check the queue etc... A quick, simple fix is to get the job to submit itself 1 hour (or whatever time period later), then change the process to, say "News Skim". If the last job is still running, this will error and you can do what you want at this point (like stop 'cause the job is already set to run later anyway). I know it not really neat but then it save DCL, checking of queues etc. Malcolm -- +-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+ | Malcolm J. Wade, Malcolm.Wade%decus.com.au@uunet.uu.net (Internet) | | COMSIG Editor, PSI%(0)505224122018::Malcolm.Wade (VAX/PSImail) | | DECUS South Pacific Chapter. Tel. +61 2 369 6564 (w) | +-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+