Shell Commands/WBRun

From MorphOS Library

< Shell Commands

WBRun - Starts the specified command as if it was started from Ambient


PROG  - Name (inc. pathname) of the program to start                           
ARGS  - Argument(s) to send to the program
STACK - StackSize to use (default: see Ambient prefs)
PRI   - Specifies a priority (default = 0)
DELAY - Waits an amount of time before starting the program

Using this command it is possible to fake an Ambient startup. The specified command will run as if it was started from the Desktop.

NOTE: Ambient and the current CLI do not share the same PATH nor default stacksize.

See also: Run command.