On 16/10/2017 2:09 PM, Peter Hunkeler wrote:
I guess COZBATCH has left out /bin/login, and exec()s to the shell to
avoid the above restrictions.
That's almost right, but COZBATCH uses spawn. By default it will run the
user's shell as a "login" shell. The tricky part is that /bin/sh has a
sticky bit on, so to get a local spawn you have to use one of the
workarounds documented in BPX1SPN
>
What workaround?
My thoughts have been to first spawn() to a glue routine to get the local
process and then to exec() to /bin/sh. Another way be to invoke a shell script
making sure _BPX_SPAWN_SCRIPT=YES is present.
Maybe Kirk will be generous enough to share the "secret sauce" to the
COZBATCH recipe :)
--
Peter Hunkeler
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN