User guide

>>> ps # Display complete process status.
ID PCB Pri CPU Time Affinity CPU Program State
-------- -------- --- -------- -------- --- ---------- ----------------------
0000006c 001423a0 3 2 00000001 0 ps running
0000005c 00144b40 2 19253 00000001 0 memtest ready
0000005b 00147a60 2 9 00000001 0 sh_bg waiting on 00144B40
00000059 0014c060 2 21750 00000001 0 memtest ready
00000058 0014edc0 2 5 00000001 0 sh_bg waiting on 0014C060
00000056 00152860 2 3 00000001 0 exer_kid waiting on mscp_rsp
00000055 00153ae0 2 2 00000001 0 exer waiting on exer_tqe
00000054 00181580 2 6 00000001 0 sh_bg waiting on 00153AE0
0000004f 00154d60 5 38 ffffffff 0 pke0_poll waiting on tqe
.
.
.
>>> ps | grep exer # Check exer.
00000056 00152860 2 6 00000001 0 exer_kid waiting on mscp_rsp
00000055 00153ae0 2 2 00000001 0 exer waiting on exer_tqe
12.7.2 Killing a Process
To stop a process, use the process ID that you get from using the ps command as
the argument of the kill command.
>>> ps | grep memtest # Find a process to kill.
0000005c 00144b40 2 135733 00000001 0 memtest ready
00000059 0014c060 2 138258 00000001 0 memtest ready
>>> kill 59 # Kill one of the memtests.
>>> ps | grep memtest # Display our background tasks.
0000005c 00144b40 2 135733 00000001 0 memtest ready
12.8 Creating Scripts
A script is a file that contains console commands, similar to an OpenVMS
command file. The console firmware contains many scripts, such as the powerup
script, that you can run by typing the name of the script file.
If you have a complex command or a series of commands that you have to use
frequently, you can write a script for your convenience. Use the echo command
and the output creation operator, >, to write characters to a file. The file is the
script. The following example creates the foo script, containing the examine
command.
>>> echo e pmem:3fff000 > foo # Write "e 0" to file foo.
>>> cat foo # List foo.
e pmem:3fff000
>>> foo # Execute script foo.
pmem: 3FFF000 0000000000000000
12–14 Console Primer