run(1fmli)


run -- run an executable

Synopsis

   run [-s] [-e] [-n] program

Description

The run function runs program, using the PATH variable to find it. By default, when program has completed, the user is prompted (Press ENTER to continue:), before being returned to FMLI. The argument program is a UNIX system executable followed by its options (if any).

-e
If -e is specified the user will be prompted before returning to FMLI only if there is an error condition

-n
If -n is specified the user will never be prompted before returning to FMLI (useful for programs like vi, in which the user must do some specific action to exit in the first place).

-s
The -s option means ``silent,'' implying that the screen will not have to be repainted when program has completed. NOTE: The -s option should only be used when program does not write to the terminal. In addition, when -s is used, program cannot be interrupted, even if it recognizes interrupts.

Examples

Here is a menu that uses run:
   menu="Edit special System files"
   

name="Password file" action=`run -e vi /etc/passwd`

name="Group file" action=`run -e vi /etc/group`

name="My .profile" action=`run -n vi $HOME/.profile`


© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004