Gil, Can u talk off list ? On Tue, Aug 29, 2017 at 12:57 PM Paul Gilmartin < [email protected]> wrote:
> On 2017-08-29, at 10:37, scott Ford wrote: > > > > I was reading through IBM Unix services manuals and have a pipe > question.. > > If I as a STC ..issue a Unix command after a PIPE was established and > > retrieve output of the > > command, i *think* the answer is "yes". If so in a Single Thread STC > would > > the STC wait for the response ?? or does it depend on your code..I am > > dealing with LE Cobol and want to utilize the nice features of Unix > which i > > am somewhat familiar. > > > Many questions: > > How are you creating the pipe? Named or unnamed? > > How are you issuing the UNIX command? > > Is it a shell command? > > Did you put it in background with the '&' operator? > > Are you reading the output with a nonblocking read? > > Are you depending on the system buffer (131kB, I believe) > to circumvent deadlock? > > Are you using select() to be notified of available output? > > Did you close the input end of the pipe in the parent process > space in order to be able to detect end of information? > > Are you using waitpid() on the child? > > -- gil > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to [email protected] with the message: INFO IBM-MAIN > -- Scott Ford IDMWORKS z/OS Development ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
