On Mon, 10 Sep 2018 09:10:54 -0700, Charles Mills wrote:
>Forgive my UNIX stupidity.
>
>I am executing FILE *errFile = popen("bpxmtext 76697242", "r"); and getting
>BPXW0000I Exec not found
>
>What am I missing?
>
>Environment: started task, POSIX(ON), z/OS V2R2, I think fairly typical
>linklist and so forth.
>
From a UNIX commmand line:
o What does "bpxmtext 76697242" do?
o What does "type bpxmtext" do?
From your C program:
o What does 'getenv( "PATH" )' do?
I might suggest:
FILE *errFile = popen("bpxmtext 76697242 </dev/null 2>&1", "r"); just to
cover stdin and stderr, but I hardly expect any difference.
>-----Original Message-----
>From: David Crayford
>Sent: Friday, September 7, 2018 7:24 PM
>
>Swap system(“bpxmtext”) to popen(“bpxmtext”) and read the output from the pipe
-- gil
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN