Waiting for a response from a Command

General discussion on Zend Server for IBM System i
Post Reply
jord2931
Posts: 3
Joined: Tue Feb 09, 2016 6:37 pm

Waiting for a response from a Command

Post by jord2931 » Fri Mar 25, 2016 2:56 pm

We need our PHP script to wait for a response after running a send message inquiry. Does anyone have any good suggestions on how to do that?

Our code is simply this:

Code: Select all

$cmd = 'SNDMSG MSG(DSFG) TOMSGQ(*SYSOPR) MSGTYPE(*INQ) RPYMSGQ(QSYSOPR)';
            
           $command = $tk->conn->CLInteractiveCommand($cmd);
Then we return $command. I have tried running it as an InteractiveCommand, Command and CommandWithOutput. We see the msg on the i, but the PHP script continues.

Post Reply