prevent QP2SHELL to open terminal window

General discussion on Zend Core for IBM System i
Post Reply
bernie2
Posts: 1
Joined: Fri Apr 24, 2009 11:12 am

prevent QP2SHELL to open terminal window

Post by bernie2 » Wed Jan 27, 2010 2:34 pm

Hello,

if one runs a php-app from an i5 CLP using QP2HELL it opens a terminal window.
This is not wanted in many applications, because they should run in batch and one does not want to interact with the app during runtime.
So - has anyone an idea how to avoid the terminal window to come up?

Thanx in Advance

darkluke980
Posts: 61
Joined: Sat Mar 28, 2009 8:31 pm
Location: Italy
Contact:

Re: prevent QP2SHELL to open terminal window

Post by darkluke980 » Wed Jan 27, 2010 9:31 pm

CHGVAR VAR(&EXE) VALUE('/USR/LOCAL/ZEND/CORE/BIN/PHP')
CHGVAR VAR(&ID) VALUE('00000001')
CHGVAR VAR(&PGM) +
VALUE('/WWW/ZENDCORE/HTDOCS/TEST.PHP ')

/* NO DISPLAY OUTPUT SCREEN */
RMVENVVAR ENVVAR(QIBM_QSH_CMD_OUTPUT)
MONMSG MSGID(CPFA981)
ADDENVVAR ENVVAR(QIBM_QSH_CMD_OUTPUT) VALUE(NONE)

CHGVAR VAR(&CMDI) VALUE(&EXE !> ' ' !> &PGM !> ' +
' !> &ID)


QSH CMD(&CMDI)

/* RESET ENVIRONMENT */
CHGENVVAR ENVVAR(QIBM_QSH_CMD_OUTPUT) VALUE(STDOUT)

Post Reply