HP OpenVMS Systems

ask the wizard
Content starts here

DCL Programming? (Background script)

» close window

The Question is:

Is it possible to put a particular "script" in the background (something like a
 dynamic script)?  I have a custom script that bring up and shutdown different
 oracle databases and other commands in every 20 or 30 minutes and based on
 other criteria.  I don
t wanna use crontab because the period to shutdown is not actually every 20 but
 based also on other criteria. Is this possible?  Thanks.

The Answer is :

  Yes, quite trivial.
  Please learn about DCL programming, and particularly about detached
  jobs, batch queues and batch jobs.  Also about lexical functions,
  and learn from sections of the FAQ such as "How do I run a program
  with arguments?", "Use of RUN/DETACH, LOGINOUT, and logical names?",
  "How do I create a process under another username?", and "Why do
  lib$spawn, lib$set_symbol fail in detached processes?"
  For scheduling beyond what is available for a batch job and what is
  also available within a self-scheduling DCL procedure -- to learn about
  freeware tools such as cron and Kronos and about commercial job scheduling
  packages -- please see the pointers to Freeware and to the OpenVMS
  software catalog, both referenced in the OpenVMS FAQ.
  For an example of a background job, see SYS$EXAMPLES:MSCPMOUNT.COM.
  Books and manuals on DCL are available.  See the FAQ for pointers.

answer written or last revised on ( 13-AUG-2001 )

» close window