Download CIS 90 - Lesson 11

Transcript
CIS 90 - Lesson 11
Job Control
A feature of the bash shell
Ctrl-Z or Ctrl-F (sends SIGTSTP 20 signal)
• Stops (suspends) a foreground process
[rsimms@opus ~]$
[1]+
Stopped
PID 7728
is stopped
Ctrl-Z is tapped which
stops the sleep
command
sleep 5
[rsimms@opus ~]$
F S
UID
PID
5 S
201 5368
0 S
201 5369
5 S
201 6203
0 S
201 6204
0 T
201 7728
0 R
201 7730
[rsimms@opus ~]$
PPID
5365
5368
6200
6203
6204
5369
C PRI
0 75
0 76
0 75
0 75
0 75
0 78
NI
0
0
0
0
0
0
ADDR SZ
- 2460
- 1165
- 2491
- 1165
926
- 1062
WCHAN
wait
finish
-
TTY
?
pts/0
?
pts/6
pts/6
pts/0
TIME
00:00:00
00:00:00
00:00:00
00:00:00
00:00:00
00:00:00
CMD
sshd
bash
sshd
bash
sleep
ps
143