[Info-vax] SYS$CREPRC output to file but its overriding and not appending
Simon Clubley
clubley at remove_me.eisner.decus.org-Earth.UFP
Thu Nov 4 15:02:38 EDT 2021
On 2021-11-04, HCorte <hmmbcorte at gmail.com> wrote:
> Running a script/command procedure using the CREPRC with the image LOGINOUT the OUTPUT_PATH is a logical name as is the SCRIPT_PATH and ERROR_PATH.
> The logical name OUTPUT_PATH point to a file.LOG;1 specifying the version 1 to not generate multiple files since its running every 5 seconds the script/SYS$CREPRC.
>
That is as expected given the specification of a version number.
Normally VMS handles this by creating an higher version of the existing
log files, but you have overridden that.
However, VMS has the concept of a Process Permanent File (PPF).
I wonder if there's any way to open a file in DCL and then pass a
reference to it in the output descriptor of your sys$creprc() call ?
I vaguely remember that PPF files are referenced via some internal
structure instead of via a normal filename, but I don't know if that's
anything which you can access (even if I have remembered that correctly).
However, rather than starting a new process every 5 seconds, can whatever
you are doing stay within an ongoing loop, pausing every 5 seconds ?
You can always use something like a control file (which the subprocess
looks for) to shutdown the subprocess.
Simon.
--
Simon Clubley, clubley at remove_me.eisner.decus.org-Earth.UFP
Walking destinations on a map are further away than they appear.
More information about the Info-vax
mailing list