Shell Commands/WBRun

From MorphOS Library

Revision as of 14:46, 3 March 2015 by JPV (talk | contribs) (Created page with "'''WBRun''' - Starts the specified command as if it was started from Ambient PROG/A, ARGS/M, STACK/K/N, PRI/K/N, DELAY/K/N <nowiki> PROG - Name (inc. pathname) of the progr...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

< Shell Commands

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

PROG/A, ARGS/M, STACK/K/N, PRI/K/N, DELAY/K/N

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.