From: SMTP%"RELAY-INFO-VAX@CRVAX.SRI.COM" 1-JUN-1993 08:29:02.59 To: EVERHART CC: Subj: Re: VMS Time Scheduler X-Newsgroups: comp.os.vms From: ORAKEL@main01.rz.uni-ulm.de (Framstag) Subject: Re: VMS Time Scheduler In-Reply-To: panterb@emr1.emr.ca's message of Mon, 31 May 1993 17:42:37 GMT Message-Id: <1993May31.191727.26926@wega.rz.uni-ulm.de> Sender: news@wega.rz.uni-ulm.de (News Net) Organization: University of Ulm, Germany Date: Mon, 31 May 1993 19:17:27 GMT X-Copyright: Jegliche Veroeffentlichung ausserhalb der Datennetze erfordert die schriftliche Genehmigung des Autors X-News-Reader: VMS NEWS 1.25beta Lines: 72 To: Info-VAX@kl.sri.com X-Gateway-Source-Info: USENET In <1993May31.174237.18436@emr1.emr.ca> panterb@emr1.emr.ca writes: > I have a quick question about VMS Scheduling capabilities. I would like > to run "batch" jobs after hours, and would like to do so, on our Micro > VAX II, running VMS 5.3. Does anyone know if, and how this is done? you can use my CRON program. From the README: This is CRON, a job scheduler for VMS for periodic tasks written in DCL and inspired by the unix crontab facility. CRON doesn't need any special privs, every user should be able to use it. You need at least: VMS 5.5 (runs with a few restrictions on 5.0), active job quota 3, subprocess quota 3. An example of a running CRON system: $ show log cron "CRON" = "X2:[UIC377.ORAKEL.UTIL.CRON]" (LNM$PROCESS_TABLE) $ $ cron list 31-JAN-1993 23:10:40 ( detached CRON-daemon: MAIN02::ORAKEL_CRON ) Jobname Times (m h d wd or d-h:m) Queue ------- --------------------------- ----- BACKUP 0 6 * * fast$batch HAPPA 0 18 * 1-5 / 40 13 * 1-5 fast$batch NEWS 30 18 * * fast$batch CRON_CHECK 02:00 (Holding until 31-JAN-1993 23:22) fast$batch O25 0:05 (Holding until 31-JAN-1993 23:13) spawn USER 0:10 (Holding until 31-JAN-1993 23:15) spawn $ $ cron kill %CRON-S-KILLD, killed detached daemon-process ORAKEL_CRON -CRON-I-KILLD, and all fix timed/spawned jobs %CRON-S-KILLJ, killed job CRON_CHECK $ $ cron start %CRON-S-LAUNCH, launched job BACKUP %CRON-S-LAUNCH, launched job CRON_CHECK %CRON-S-LAUNCH, launched job HAPPA %CRON-S-LAUNCH, launched job NEWS %CRON-S-LAUNCH, launched job O25 %CRON-S-LAUNCH, launched job USER %CRON-S-DAEMON, started detached daemon-process ORAKEL_CRON $ $ cron kill=user %CRON-S-KILLJ, killed job USER $ $ cron start=user %CRON-S-LAUNCH, launched job USER $ $ type cron:backup.crn $! 0 6 * * $! fast$batch $! /cpu=0 $set noon $del ba:orakel.zip.*,util.zip.* $vzip -b sys$scratch: ba:orakel.zip [...]*.* $vzip -b sys$scratch: ba:util.zip oo:[000000...]*.* If you're interested you can find it on ftp.rz.uni-ulm.de in pub/VMS/dcl \ Ulli 'Framstag' Horlacher \ psi%(0262)45050260103::orakel \ \ Student consultant VAX/VMS and networks \ orakel@dulruu51.bitnet \ \ Rechenzentrum Universitaet Ulm Germany \ orakel@rz.uni-ulm.de \ \ G=ulli;S=horlacher;OU=rz;P=uni-ulm;A=dbp;C=de \ rzmain::orakel \ \ "With mainframes you just can do nonsense, with PCs not even that." \