|
In using the "system" function in a C written program, I cannot get the system
call to work with a detached process.
In a detached process, there is no CLI present by default, hence there
is no way for LIB$SPAWN or system() to operate.
See the OpenVMS Frequently Asked Questions (FAQ) section entitled
"DCL1. How do I run a program with arguments?" section for some
additionaol details and suggestions.
:The debug statements to write out the status show a value of 1 (SUCCESS)
:when run from a spawn command or an interactive session but it shows
:0 (FAIL) when is run from a detach process.
Check the error status and system-error-status values returned via
C -- I'd expect to see the SS$_NOCLI value in the platform error
code cell.
|