Computing.Net > Forums > OpenVMS > How to run script at 30 min automat

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

How to run script at 30 min automat

Reply to Message Icon

Name: gp1
Date: January 25, 2009 at 03:22:48 Pacific
OS: OpenVMS
CPU/Ram: 2
Product: Hewlett-packard / Alphaserver
Subcategory: Software Problems
Comment:

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



Sponsored Link
Ads by Google

Response Number 1
Name: Joseph.Huber
Date: January 27, 2009 at 07:56:40 Pacific
Reply:

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


0

Response Number 2
Name: gp1
Date: January 28, 2009 at 21:10:52 Pacific
Reply:

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..


0

Response Number 3
Name: Joseph.Huber
Date: January 29, 2009 at 00:58:17 Pacific
Reply:

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


0

Response Number 4
Name: Joseph.Huber
Date: January 29, 2009 at 01:12:00 Pacific
Reply:

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


0

Response Number 5
Name: Joseph.Huber
Date: January 29, 2009 at 01:18:32 Pacific
Reply:

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


0

Related Posts

See More



Sponsored Link
Ads by Google
Reply to Message Icon





Use following form to reply to current message:

Login or Register to Reply
LoginRegister


Sponsored links

Ads by Google


Results for: How to run script at 30 min automat

Schedule Ingres Procedure on VAXVMS www.computing.net/answers/openvms/schedule-ingres-procedure-on-vaxvms/170.html

How to use tcpdump ? www.computing.net/answers/openvms/how-to-use-tcpdump-/545.html

dcl to shell script www.computing.net/answers/openvms/dcl-to-shell-script/592.html