when starting a script on AIX with remote exec from z/OS
the script terminates but the rexecd does not end and so the job on the z/OS does not end too.
after killing the rexecd process the z/os job ends.
When it is a "normal" script the rexecd ends and the z/os Job too.
But in this case my script starts an Oracle Instance.
I tried with a wrapper script that calls the oracle startup script which at his end kills his parent process (the wrapper). The wrapper is killed but the parent process of the wrapper is the rexecd process. So when the wrapper is killed I coded a kill of the ppid at the moment of his interrupt but the problem is that the rexecd is owned by root and the main script started from z/OS (the wrapper) is started by the oracle user and so the permission to kill is denied.
any idea of a workaround ?
the script terminates but the rexecd does not end and so the job on the z/OS does not end too.
after killing the rexecd process the z/os job ends.
When it is a "normal" script the rexecd ends and the z/os Job too.
But in this case my script starts an Oracle Instance.
I tried with a wrapper script that calls the oracle startup script which at his end kills his parent process (the wrapper). The wrapper is killed but the parent process of the wrapper is the rexecd process. So when the wrapper is killed I coded a kill of the ppid at the moment of his interrupt but the problem is that the rexecd is owned by root and the main script started from z/OS (the wrapper) is started by the oracle user and so the permission to kill is denied.
any idea of a workaround ?