My code now looks like:
ADDENVVAR ENVVAR(QIBM_QSH_CMD_OUTPUT) REPLACE(*YES) +
VALUE('fileappend=/tmp/SametimeWAS/ServerErrorLog.txt')
ADDENVVAR ENVVAR(QIBM_QSH_CMD_ESCAPE_MSG) REPLACE(*YES) +
VALUE(Y)

QSH CMD(&QshCmd)
MONMSG MSGID(QSH0005) EXEC(DO)
SNDPGMMSG MSGID(CPF9898) MSGF(QCPFMSG) MSGTYPE(*ESCAPE) +
MSGDTA('Error: Try DSPF
/tmp/SametimeWAS/ServerErrorLog.txt')
ENDDO

However I am still getting the screen. Which I'm ok with. But it also
displays "Press ENTER to end terminal session. " still.

On the plus side I am getting the Error when applicable.

I have no file in '/tmp/SametimeWAS'. I even did a MD '/tmp/SametimeWAS'
to see if that had to exist first.
Since it says fileappend I even tried EDTF '
/tmp/SametimeWAS/ServerErrorLog.txt' first to see if the file has to exist
and just append on to it. Upon completion all it contained was the string
I entered when I did the EDTF.


Rob Berendt

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.