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: Lynn Lantz Subject: Re: How do you automate a file to run every hour ? Date: 1997/06/12 Message-ID: <33A015AD.E85045C6@mnco.com>#1/1 X-Deja-AN: 247902350 References: X-Priority: 3 (Normal) Organization: Netcom X-NETCOM-Date: Thu Jun 12 10:32:19 AM CDT 1997 Newsgroups: comp.os.vms,comp.sys.dec Yin Tse wrote: > 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 and also how do you program it in > dcl > to let you know if the com file was not able to run the application > for > some reason. Is there some way to know that the application crashed or > > would not start. Thanks for the help in advance. Wow, what a wide opened question. A couple quick simple answers: 1. Use submit command (see help) to set up the batch job to run every hour, put the submit command withing the .com itself so it will re-submit itself when it runs. 2. Just put a Wait command in your .com file to wait for 1 hour and then goto the beginning again. 3. See dcl books and help for On_error trapping