[Info-vax] SYS$CREPRC output to file but its overriding and not appending
Simon Clubley
clubley at remove_me.eisner.decus.org-Earth.UFP
Fri Nov 5 14:36:14 EDT 2021
On 2021-11-04, Lawrence D?Oliveiro <lawrencedo99 at gmail.com> wrote:
> On Friday, November 5, 2021 at 8:02:41 AM UTC+13, Simon Clubley wrote:
>> 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 ?
>
> No, because channels open in one process are not passed to another process. You?re thinking in ?fork? terms, but VMS does ?spawn?, not ?fork?.
sys$creprc() itself runs in the context of the parent process.
It just happens to create a subprocess while its running.
The question is, does the output file get created in the context of
the parent process during the execution of sys$creprc() or in the
context of the subprocess ?
IOW, does sys$creprc() create the output file or does something in
the newly created subprocess do that ?
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