call php from cl
25 pts.
0
Q:
call php from cl
Hello,

i call a php program from my cl with
CALL PGM(QP2SHELL) ...
the php is called, but then opens the QSHELL.
can i close the QSHELL from my php programm?
Or can i call a php programm without starting qshell?

btw. can i sent parms back to the cl from php?

Thanks for your help i am just starting php on i5.

by jo
ASKED: Feb 26 2008  4:15 PM GMT
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
0
23625 pts.
0
A:
 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0
  • AddThis Social Bookmark Button
Hi,

In a QSHELL script the following should stop the QSHELL appearing :-

$(QIBM_QSH_CMD_OUTPUT="NONE")

I don't know if this will work from PHP, but maybe it'll give you a starting point.

Regards,

Martin Gilbert.
Last Answered: Feb 28 2008  4:51 PM GMT by Gilly400   23625 pts.
0
0
Discuss This Answer:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _



_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Mitchb   105 pts.  |   Sep 25 2009  3:10AM GMT

Can you please tell me what the possible command parameters are when calling QP2SHELL?
I understand the -c for a command string but are there any other values when using the AS/400.
I am trying to create a session logfile and I have used the command string
“sftp  <a href="mailto:username@servername.com.au" title="mailto:username@servername.com.au">username at servername.com.au</a> >/temp/logfile.txt” when calling QP2SHELL but does not seem to be visable……thanks

 
0