[Info-vax] Are queue manager updates written to disk immediately ?
Jan-Erik Soderholm
jan-erik.soderholm at telia.com
Fri Apr 12 13:40:43 EDT 2013
Simon Clubley wrote 2013-04-12 17:01:
> On 2013-04-12, Jan-Erik Soderholm <jan-erik.soderholm at telia.com> wrote:
>>
>> And it wasn't as simple as an extra submit of the job
>> from the startup scripts? Do you have any log files
>> with the startup/console output ?
>>
>
> Nice idea, but unfortunately I never submit routine scheduled jobs such as
> this one from the system startup. The only place the submit command for
> this job exists across the whole of this system is in the command procedure
> itself.
>
> The only batch jobs I submit at system startup are for those tasks designed
> to be running 24/7.
>
> Simon.
>
Not realy answering the original question, it's still
a mistery I guess. :-)
I'm generally against "self-submitting" COM files becuse it's
hard to get an overview of all jobs running. And if something
crashes (before the submit command), the job is "lost".
It's is also messy for jobs that runs multiple times during
each 24h period. And as I think Hoff said, the risk of
someone hitting "/release" on a holding job... :-)
I uses a cron-like tool (called CRON :-) ) that I found
many years ago. This way all scheduled job are in one
configuration file and it's simple to get an overview
using one TYPE command.
It also takes care of such things as "not on sundays",
"only the 1'st each month" and so on.
The CRON server itself is a DCL-only COM file.
Example of configuration file:
$ type util:<cron>crontab.dat
# cron example
# command order:
# Field: 1 2 3 4 5
# hour day month D-O-W command
#
# CRON matches against first four fields and then
# considers command
#
# First four fields (time) can be any of the following:
# 1) Single number --> must match exactly
# 2) number - number --> match inclusive range
# 3) number,number --> match any in the list
# 4) * --> wildcard, matches anything
#
#########################################################################
# Example:
# 1,15 12-3 1,2 2-4 SUBMIT ACCOUNTING.JOB
#########################################################################
#
# hour
# ! day
# ! ! month
# ! ! ! D-O-W
# ! ! ! ! command
# ! ! ! ! !
#
# Restart of CRON server (if it crashes)
# Runs each hour
* * * * submit/aft="+01:15:00" util:[cron]cron_startup
#
# Sync of system clock against eBay/Tradera
# Runs 01:00, 08:00 and 12:00 each day
1,8,12 * * * submit dev:[dir]get_trad_time_2
#
# Three jobs run at 01:00 each night
#
# Recalc of TRADSCHED date.
1 * * * submit dev:[dir]ts_recalc_date
#
# Resubmit of TRADSCHED items.
1 * * * submit dev:[dir]ts_check
#
# Run TRADSCHED report.
1 * * * submit dev:[dir]list_sche /param=("1234")
#
* * * * wait 00:00:05
# ! ! ! ! !
# ! ! ! ! command
# ! ! ! D-O-W
# ! ! month
# ! day
# hour
Jan-Erik.
More information about the Info-vax
mailing list