From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,f8b5a5e1dbbb6bf X-Google-Attributes: gidf7344,public X-Google-Thread: 1164f8,f8b5a5e1dbbb6bf X-Google-Attributes: gid1164f8,public From: cornelius@eisner.decus.org (George Cornelius) Subject: Re: How do you automate a file to run every hour ? Date: 1997/06/13 Message-ID: <1997Jun13.153629.1@eisner>#1/1 X-Deja-AN: 248204540 X-Nntp-Posting-Host: eisner.decus.org References: <01bc774e$f7cea240$6a046e78@bft.spire.com> X-Nntp-Posting-User: CORNELIUS X-Trace: 866230593/10008 Organization: DECUServe Newsgroups: comp.os.vms,comp.sys.dec In article <01bc774e$f7cea240$6a046e78@bft.spire.com>, "Bruce F. Thatcher" writes: > Yin Tse wrote in article ... >> I'm looking into writing a com file to run every hour or so. That com >> file will start an application which will run until it terminates. >> My question is how do you do that... > > First, decide whether you want the procedure running in a batch queue (type > HELP SUBMIT for more information), or as an independent (detached) process > (type HELP RUN PROCESS for more information)? Note that you need > specialized privileges to run a process in detached mode. No, you need not special privileges to use the /DETACHED qualifier, but you do need them to run a detached process under a different UIC (I know that HELP under VMS V6 says otherwise, but all that means is that some at DEC make the same incorrect assumption that everyone else does about the meaning of DETACH privilege). You can also schedule a process for periodic wakeups via $ RUN filename /INPUT=comfile /OUTPUT=logfile ... with the /DELAY and /INTERVAL qualifiers. One disadvantage of this compared to batch queues is that there does not appear to be an easy way to see when the process is scheduled to awaken next and what its time interval parameter is. -- George Cornelius cornelius@eisner.decus.org cornelius@mayo.edu