Shell Commands/Status

From MorphOS Library

Revision as of 13:26, 3 March 2015 by JPV (talk | contribs) (Created page with "'''Status''' - Displays a list of currently running CLI processes PROCESS/N, FULL/S, TCB/S, CLI=ALL/S, COM=COMMAND/K <nowiki> PROCESS - Number of the process to spy...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

< Shell Commands

Status - Displays a list of currently running CLI processes

PROCESS/N, FULL/S, TCB/S, CLI=ALL/S, COM=COMMAND/K

PROCESS - Number of the process to spy                                         
FULL    - Gives full details about each process
TCB     - Gives full details but omit the current command
          for each process
CLI     - See TCB
COM     - Searches for the Command COM (see Below)

Status without any arguments lists the numbers of the current Shell processes and the program or command running in each. The PROCESS argument specifies a process number, limiting Status to giving information about that process only.

When the COM switch is used, Status scans the Shell list, looking for the specified command. If the command is found, the Shell's process number is output, and the condition flag is set to 0. Otherwise, the flag is set to 5 (WARN).

Example:

  MorphOS:> Status >RAM:Xyz COM=COPY
  MorphOS:> Break <RAM:Xyz >NIL: ?
=> sends a break to the process executing Copy.