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: rkoehler@csc.com (Robert Koehler) Subject: Re: How do you automate a file to run every hour ? Date: 1997/06/12 Message-ID: <5nos95$8c9@explorer.csc.com>#1/1 X-Deja-AN: 247878161 References: Followup-To: comp.os.vms,comp.sys.dec Organization: Computer Sciences Corporation Reply-To: rkoehler@csc.com-otr Newsgroups: comp.os.vms,comp.sys.dec Yin Tse (cr389@torfree.net) 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. How about, in a.com: $on warning then goto mailme $if f$mode() .eqs. "INTERACTIVE" then goto background $run someapplication $background: $submit/after="0-1::." a.com/noprint $exit $mailme: $mail sys$input: yournamegoeshere $deck someapplication failed $eod $goto background ------------------------------------------------------------------------------ Bob Koehler | Computer Sciences Corporation | System Sciences Division