Changeset 51


Ignore:
Timestamp:
Apr 19, 2021, 11:33:50 PM (4 years ago)
Author:
Alex Taylor
Message:

Clarify limitations of DOSExecPGM wrapper

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rxutilex/trunk/rxutilex.txt

    r48 r51  
    169169
    170170-------------------------------------------------------------------------
    171 Sys2Exec                                                                 
    172                                                                          
     171Sys2Exec
     172
    173173Executes an external program and returns the process ID or termination
    174 code.  Wrapper to DosExecPgm().  Note that text mode programs requiring
    175 user input cannot be started from a PM program using this function;
    176 they can only be started from another text mode program (in which case
    177 it is inadvisable to start them using any mode other than EXEC_SYNC).
    178                                                                          
    179 REXX ARGUMENTS:                                                         
     174code.  Wrapper to DosExecPgm.  Note that there are limitations on the type
     175of program which can be started, depending on the calling program's type.
     176In particular, text mode (VIO) programs which expect input must not be
     177started from a graphical (PM) program.  If it is necessary to start a VIO
     178program from a PM program using this function, it should be run detached
     179('D' mode).
     180
     181VIO programs requiring input can be started from other VIO programs, but it
     182generally advisable to use start them in wait ('W') mode.
     183
     184
     185REXX ARGUMENTS:
    180186  1. Name of executable program to run.                        (REQUIRED)
    181187  2. Argument string to pass to the called program.
     
    184190      'N' or 'A': Run the program in no-wait (asynchronous) mode (EXEC_ASYNC).
    185191      'D' or 'B': Run the program detached (EXEC_BACKGROUND).
    186                                                                          
    187 REXX RETURN VALUE:                                                       
     192
     193REXX RETURN VALUE:
    188194  If EXEC_SYNC mode was requested, returns the termination status (this is
    189195  _not_ the same as the return code) from the started program.  Otherwise,
     
    690696Sys2SetSize
    691697
    692 Set the size of a file to a specific number of bytes; files larger than 
     698Set the size of a file to a specific number of bytes; files larger than
    6936992GB are supported (this function is a wrapper to DosSetFileSizeL).
    694700
Note: See TracChangeset for help on using the changeset viewer.