Shell Program (ttstpshell )

This functionality is not supported on Windows servers.

This program is a simple shell to control running bshell-processes.

The following commands are possible:

  • pid- Print process id
  • debug [pid]- Stop a process in debug mode
  • renice [nice] [pid list]- Set nice value of processes
  • kill [pid list]- Kill a number of processes
  • killpgrp [group list]- Kill all processes within group(s)
  • killall- Kill all except shell process
  • help- Help information
  • ?- Help information
  • run [script name]- Run a script with shell commands
  • wait [n seconds]- Suspend activity for n seconds
  • echo [string]- Echoes string to screen
  • ls [arglist]- Like Unix ls command
  • l [arglist]- Like Unix l command
  • ll [arglist]- Like Unix ll command
  • cd [arglist]- Like Unix cd command
  • pwd- Like Unix pwd command
  • cls- Clear screen
  • prompt- Change prompt
  • fg.color <0|1|2|3|4|5|6|7>- Change foreground color of shell
  • bg.color <0|1|2|3|4|5|6|7>- Change background color of shell
  • exit- End shell (also Ctrl+D)
  • ps [pid list]- see below.
  • oic- see below.

ps [pid list]

Print process status (default all processes). When entering one or more pid's, the status and the belonging objects of the pid are shown.

Example:

PID GROUP PPID S FLAGS PRI NI TICKS SIZE MWIN CWIN COMMAND
0 0 0 R   20 0 0 35 0 0 init
1 1 0 S   20 0 11287 32 0 0 ottstpstdlib
2 2 0 B B 20 0 1957 41 11 19 mtttls0000m000
Column Description
PID Process id
GROUP Process group id

if PID=GROUP then process is group leader

PPID Parent process id
S Process queue status:
  • S - Sleeping
  • R - Running
  • B - Blocking
  • Z - Zombie
FLAGS CPU Flags:
  • R - Retrying (General)
  • E - Ending
  • B - Blocking (Waiting for next event)
  • W - Waiting (During Wait Function)
  • D - Locking (During Retry in Database Lock)
PRI Process with highest priority will be scheduled. If process is not scheduled the priority will be increased until it gets scheduled. If scheduled the process receives the basis priority (NI).
NI Basis priority or nice value:
  • -20 - High
  • 0 - Default
  • 20 - Low
TICKS Number of used cpu ticks
SIZE Size of process in KB (Data)
MWIN Current main window id
CWIN Current ascii window id
COMMAND Process name

oic

Print all loaded objects

Example:

STICK SHM REF TSIZE OBJECT
Y N 4 29 ottstp_stddll
N N 1 71 ottadv2130
N N 1 11 ottstpmenu
N Y 1 35 ottstpstdlib
N N 1 146 ottstpstandard
Column Description
STICK Indicates whether the object has the sticky bit on. This means that the object should not be removed out of memory, when the process ends.
SHM Indicates whether the object is stored in shared memory
REF Reference counter, which shows how many processes use this object
TSIZE Size of process in KB (text)
OBJECT The object name