Changeset 4010


Ignore:
Timestamp:
May 21, 2020, 11:22:35 AM (5 years ago)
Author:
Andreas Schnellbacher
Message:
  • Improved determination if EPM is running. The previous version always opened a new EPM window on install, if WarpIN was started with the NEPMD env.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/src/netlabs/install/epmsp.cmd

    r4008 r4010  
    157157   'CALL RXQUEUE /CLEAR'
    158158   SAY 'Executing: 'Cmd
    159    Cmd' |RXQUEUE /FIFO'
     159   Cmd'|RXQUEUE /FIFO'
    160160   LineStr.0 = 0
    161161   DO l = 1 TO QUEUED()
     
    203203   'CALL RXQUEUE /CLEAR'
    204204   SAY 'Executing: 'Cmd
    205    Cmd' |RXQUEUE /FIFO'
     205   Cmd'|RXQUEUE /FIFO'
    206206   LineStr.0 = 0
    207207   DO l = 1 TO QUEUED()
     
    257257         'CALL RXQUEUE /CLEAR'
    258258         SAY 'Executing: 'Cmd
    259          Cmd' |RXQUEUE /FIFO'
     259         Cmd'|RXQUEUE /FIFO'
    260260         LineStr.0 = 0
    261261         DO l = 1 TO QUEUED()
     
    280280      rc = ERROR.NO_ERROR
    281281      /* If running in EPM, restart this window */
    282       IF VALUE( 'NEPMD_NAME',, env) <> '' THEN
     282      Cmd = 'pstat'
     283      'CALL RXQUEUE /CLEAR'
     284      SAY 'Executing: 'Cmd
     285      Cmd'|RXQUEUE /FIFO'
     286      fEpmRunning = 0
     287      DO l = 1 TO QUEUED()
     288         PULL LineStr
     289         IF POS( '\EPM.EXE', LineStr) > 0 THEN
     290         DO
     291            fEpmRunning = 1
     292            LEAVE
     293         END
     294      END
     295
     296      IF VALUE( 'NEPMD_NAME',, env) <> '' & fEpmRunning THEN
    283297      DO
    284298         SAY 'Restart...'
Note: See TracChangeset for help on using the changeset viewer.