[Info-vax] SYS$CREPRC output to file but its overriding and not appending
VAXman- at SendSpamHere.ORG
VAXman- at SendSpamHere.ORG
Fri Nov 5 17:33:12 EDT 2021
In article <sm3tiu$baj$2 at dont-email.me>, Simon Clubley <clubley at remove_me.eisner.decus.org-Earth.UFP> writes:
>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.
Correct.
>It just happens to create a subprocess while its running.
Not necessarily so. It's true if the $CREPRC is invoked to create a
subprocess.
>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 ?
$CREPRC does not create any file.
Hint: In the original post in this thread there is a snippet of code
with the answer.
--
VAXman- A Bored Certified VMS Kernel Mode Hacker VAXman(at)TMESIS(dot)ORG
I speak to machines with the voice of humanity.
More information about the Info-vax
mailing list