Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hello friends,
i am new to openVMS, i want to know that how to run any script automatically at 30 minute time interval.
that means i want to run my script only ones and it automatically work at 30 minute interval

irst possibility: get one of CRON or KRONOS packages from the freeware archives. This gives You a Unix "cron"-like interface to schedule tasks.
Second possibility: resubmitting batch job:
Put this at the beginning of the command-file:
$ this = f$environment("PROCEDURE")
$ this = this - f$parse(this,,,"VERSION")
$ qname = f$getqui("DISPLAY_QUEUE", "QUEUE_NAME","*","THIS_JOB")
$ submit 'this'/que='qname'/after=("''f$time()'+00:30")And submit it once to start the sequence.
Joseph Huber, http://www.huber-joseph.de

Hello joseph,
thanks for reply But i have got one error in this.
i simply first testing this with printing system time at 1 minute interwal as below$ THIS=F$ENVIRONMENT("PROCEDURE")
$ THIS=THIS-F$PARSE(THIS,,,"VERSION")
$ QNAME=F$GETQUI("DISPLAY_QUEUE","QUEUE_NAME","*","THIS_JOB")
$ SHOW SYM QNAME
$ SUBMIT 'THIS'/QUE='QNAME'/AFTER=("F$TIME()'+00:01")
$ NEXT_NOW=F$CVTIME("","ABSOLUTE")
$ SHOW SYMBOL NEXT_NOW
but Output which i got is with error of missing qualifier,
QNAME = ""%DCL-W-VALREQ, missing qualifier or keyword value - supply all required values
NEXT_NOW = "29-JAN-2009 10:10:57.78"
Please give me guidance
thank you..

You have executed interactively (@test) the file, I have clearly told a resubmitting BATCH job, You have to SUBMIT it.
Joseph Huber, http://www.huber-joseph.de

Of course one can write the script in a more general way: first look if we are in interactive or batch mode (see HELP LEXICAL F$MODE), and the decide to first submit, and execute in batch.
Since You say to be "new to VMS", before starting programming, I suggest at least to read the VMS user's manual and the DCL dictionary manual (available online from the HP VMS site:
http://h71000.www7.hp.com/doc/os83_...Learn the difference between executing a command-file in interactive (@) mode and batch (submit).
Joseph Huber, http://www.huber-joseph.de

And one more tip:
since in this forum usually only 2 people are answering :-), get used to go into the HP OpenVMS forum at
http://forums11.itrc.hp.com/service...You get much quicker answers than here.
And You can find most answers to "newbie" questions already in the searchable archive.Joseph Huber, http://www.huber-joseph.de

![]() |
![]() |
![]() |
| Login or Register to Reply | |
| Login | Register |
| Ads by Google |