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 iddebug [pid]- Stop a process in debug moderenice [nice] [pid list]- Set nice value of processeskill [pid list]- Kill a number of processeskillpgrp [group list]- Kill all processes within group(s)killall- Kill all except shell processhelp- Help information?- Help informationrun [script name]- Run a script with shell commandswait [n seconds]- Suspend activity for n secondsecho [string]- Echoes string to screenls [arglist]- Like Unix ls commandl [arglist]- Like Unix l commandll [arglist]- Like Unix ll commandcd [arglist]- Like Unix cd commandpwd- Like Unix pwd commandcls- Clear screenprompt- Change promptfg.color <0|1|2|3|4|5|6|7>- Change foreground color of shellbg.color <0|1|2|3|4|5|6|7>- Change background color of shellexit- 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:
|
| FLAGS | CPU Flags:
|
| 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:
|
| 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 |