HP Visualize c160L IRIX to HP-UX Migration Guide - Page 38

ps, nice, and renice

Page 38 highlights

Managing Processes XCPU XFSZ There are some minor differences between this list and the list produced by HP-UX. Check the HP-UX list later in this section. # /usr/bin/kill -l 1) HUP 8) FPE 2) INT 9) KILL 3) QUIT 10) BUS 4) ILL 11) SEGV 5) TRAP 12) SYS 6) IOT 13) PIPE 7) EMT 14) ALRM 15) TERM 16) USR1 17) USR2 18) CHLD 19) PWR 20) WINCH 21) URG 22) POLL 23) STOP 24) TSTP 25) CONT 26) TTIN 27) TTOU 28) VTALRM 29) PROF 30) XCPU 31) XFSZ Again, there are some differences in the kill list produced by HP-UX. Both systems have a killall command that users can run to kill all processes, except the sending process. The syntax is: # killall - Signal Both systems also support the sar command. HP-UX supports a vmstat and iostat command. See the HPUX section for descriptions of these commands. Cron Both systems support an AT&T-style crontab file with each one-line entry containing the following: • Minute • Hour • Day of the month • Month of the year • Day of the week • Command IRIX, like HP-UX, supports a convenient option to the crontab command: the -e option. This option will load the contents of your crontab file into an editing session. The editor used is determined by the value of the editor variable. Once you save and exit from the editing session, your changes become your new crontab file and take effect immediately. The crontab spool directories are found in /var/spool/cron. HP-UX ps, nice, and renice The HP-UX ps command is strictly AT&T-style. Therefore a complete listing of every process is: # ps -elf Within a given range of priority numbers, the process assigned the lowest number has the highest priority. For example, a process assigned a priority of 1 takes precedence over a process assigned a priority of 6. You can check the priority setting for a process by looking in the PRI column when you invoke ps or top. (The lowest number within the range represents the highest priority.) The four categories of priority, from highest to lowest, are listed below: 33

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125

Managing Processes
33
XCPU
XFSZ
There are some minor differences between this list and the list produced by HP-UX.
Check the HP-UX list
later in this section.
# /usr/bin/kill -l
1) HUP
8) FPE
15) TERM
22) POLL
29) PROF
2) INT
9) KILL
16) USR1
23) STOP
30) XCPU
3) QUIT
10) BUS
17) USR2
24) TSTP
31) XFSZ
4) ILL
11) SEGV
18) CHLD
25) CONT
5) TRAP
12) SYS
19) PWR
26) TTIN
6) IOT
13) PIPE
20) WINCH
27) TTOU
7) EMT
14) ALRM
21) URG
28) VTALRM
Again, there are some differences in the
kill
list produced by HP-UX.
Both systems have a
killall
command that users can run to kill all processes, except the sending process.
The syntax is:
# killall – Signal
Both systems also support the
sar
command.
HP-UX supports a
vmstat
and
iostat
command.
See the HP-
UX section for descriptions of these commands.
Cron
Both systems support an AT&T-style
crontab
file with each one-line entry containing the following:
Minute
Hour
Day of the month
Month of the year
Day of the week
Command
IRIX, like HP-UX, supports a convenient option to the
crontab
command: the
-e
option. This option will
load the contents of your
crontab
file into an editing session. The editor used is determined by the value of
the
editor
variable. Once you save and exit from the editing session, your changes become your new
crontab
file and take effect immediately.
The
crontab
spool directories are found in
/var/spool/cron
.
HP-UX
ps, nice, and renice
The HP-UX
ps
command is strictly AT&T-style. Therefore a complete listing of every process is:
# ps –elf
Within a given range of priority numbers, the process assigned the lowest number has the highest priority.
For example, a process assigned a priority of
1
takes precedence over a process assigned a priority of
6
.
You can check the priority setting for a process by looking in the PRI column when you invoke
ps
or
top
.
(The lowest number within the range represents the highest priority.)
The four categories of priority, from highest to lowest, are listed below: