ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Skip the "Press ENTER to end terminal session"

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Skip the "Press ENTER to end terminal session"

    Hi

    I am looking for away to avoid this message "Press ENTER to end terminal session"

    to save the user entering these "Enter" key....


    I simply need to run my commands - one after the other without interruption.

    many thanks

  • #2
    sample:

    calling rexx

    /* rexx - testing */
    'aaa1'
    'aaa1'
    EXIT




    aaa1 command runs rexx aaa1
    /* rexx */
    say 'start run AAA1' time()
    exit 0


    output looks like:

    start run AAA1 14:23:48
    Press ENTER to end terminal session.
    start run AAA1 14:23:49
    Press ENTER to end terminal session.

    Comment


    • #3
      I found the same case, see below CLP. From Scott Klement:

      PGM
      ADDENVVAR ENVVAR(QIBM_QSH_CMD_OUTPUT) REPLACE(*YES) +
      VALUE('file=/tmp/robs error log.txt')
      ADDENVVAR ENVVAR(QIBM_QSH_CMD_ESCAPE_MSG) REPLACE(*YES) +
      VALUE(Y)

      QSH CMD('your-command-here')
      MONMSG MSGID(QSH0005) EXEC(DO)
      DSPF STMF('/tmp/robs error log.txt')
      SNDPGMMSG MSGID(CPF9898) MSGF(QCPFMSG) MSGTYPE(*ESCAPE) +
      MSGDTA('GAK! Not Good! It Failed!')
      ENDDO

      RMVLNK OBJLNK('/tmp/robs error log.txt')
      MONMSG CPFA0A9
      ENDPGM

      Comment

      Working...
      X