Line | |
---|
1 | ./jobs2.sub: line 9: fg: job 1 started without job control
|
---|
2 | fg: 1
|
---|
3 | Waiting for job 0
|
---|
4 | job 0 returns 0
|
---|
5 | Waiting for job 1
|
---|
6 | job 1 returns 0
|
---|
7 | Waiting for job 2
|
---|
8 | job 2 returns 0
|
---|
9 | Waiting for job 3
|
---|
10 | job 3 returns 0
|
---|
11 | Waiting for job 4
|
---|
12 | job 4 returns 0
|
---|
13 | Waiting for job 5
|
---|
14 | job 5 returns 0
|
---|
15 | Waiting for job 6
|
---|
16 | job 6 returns 0
|
---|
17 | Waiting for job 7
|
---|
18 | job 7 returns 0
|
---|
19 | [1] Running sleep 5 &
|
---|
20 | [2] Running sleep 5 &
|
---|
21 | [3] Running sleep 5 &
|
---|
22 | [4]- Running sleep 5 &
|
---|
23 | [5]+ Running ( sleep 5; exit 4 ) &
|
---|
24 | 4
|
---|
25 | 0
|
---|
26 | i killed it
|
---|
27 | 0
|
---|
28 | ./jobs.tests: line 19: wait: %1: no such job
|
---|
29 | ./jobs.tests: line 24: fg: no job control
|
---|
30 | wait-for-pid
|
---|
31 | wait-errors
|
---|
32 | ./jobs.tests: line 37: wait: `1-1': not a pid or valid job spec
|
---|
33 | ./jobs.tests: line 38: wait: `-4': not a pid or valid job spec
|
---|
34 | wait-for-background-pids
|
---|
35 | async list wait-for-background-pids
|
---|
36 | async list wait for child
|
---|
37 | forked
|
---|
38 | wait-when-no-children
|
---|
39 | wait-for-job
|
---|
40 | ./jobs.tests: line 60: wait: %2: no such job
|
---|
41 | 127
|
---|
42 | async list wait-for-job
|
---|
43 | forked
|
---|
44 | fg-bg 1
|
---|
45 | sleep 5
|
---|
46 | fg-bg 2
|
---|
47 | sleep 5
|
---|
48 | fg-bg 3
|
---|
49 | sleep 5
|
---|
50 | fg-bg 4
|
---|
51 | sleep 5
|
---|
52 | fg-bg 5
|
---|
53 | ./jobs.tests: line 87: fg: %2: no such job
|
---|
54 | ./jobs.tests: line 88: bg: job 1 already in background
|
---|
55 | fg-bg 6
|
---|
56 | ./jobs.tests: line 95: fg: -s: invalid option
|
---|
57 | fg: usage: fg [job_spec]
|
---|
58 | ./jobs.tests: line 96: bg: -s: invalid option
|
---|
59 | bg: usage: bg [job_spec ...]
|
---|
60 | ./jobs.tests: line 101: disown: -s: invalid option
|
---|
61 | disown: usage: disown [-h] [-ar] [jobspec ...]
|
---|
62 | ./jobs.tests: line 105: disown: %1: no such job
|
---|
63 | ./jobs.tests: line 108: disown: %2: no such job
|
---|
64 | wait-for-non-child
|
---|
65 | ./jobs.tests: line 111: wait: pid 1 is not a child of this shell
|
---|
66 | 127
|
---|
67 | 3 -- 1 2 3 -- 1 - 2 - 3
|
---|
68 | [1] Running sleep 300 &
|
---|
69 | [2]- Running sleep 350 &
|
---|
70 | [3]+ Running sleep 400 &
|
---|
71 | running jobs:
|
---|
72 | [1] Running sleep 300 &
|
---|
73 | [2]- Running sleep 350 &
|
---|
74 | [3]+ Running sleep 400 &
|
---|
75 | ./jobs.tests: line 127: kill: %4: no such job
|
---|
76 | ./jobs.tests: line 129: jobs: %4: no such job
|
---|
77 | current job:
|
---|
78 | [3]+ Running sleep 400 &
|
---|
79 | previous job:
|
---|
80 | [2]- Running sleep 350 &
|
---|
81 | after kill -STOP
|
---|
82 | running jobs:
|
---|
83 | [1] Running sleep 300 &
|
---|
84 | [3]- Running sleep 400 &
|
---|
85 | stopped jobs:
|
---|
86 | [2]+ Stopped sleep 350
|
---|
87 | after disown
|
---|
88 | [2]+ Stopped sleep 350
|
---|
89 | [3]- Running sleep 400 &
|
---|
90 | running jobs:
|
---|
91 | [3]- Running sleep 400 &
|
---|
92 | stopped jobs:
|
---|
93 | [2]+ Stopped sleep 350
|
---|
94 | after kill -s CONT
|
---|
95 | running jobs:
|
---|
96 | [2]+ Running sleep 350 &
|
---|
97 | [3]- Running sleep 400 &
|
---|
98 | stopped jobs:
|
---|
99 | after kill -STOP, backgrounding %3:
|
---|
100 | [3]+ sleep 400 &
|
---|
101 | killing...
|
---|
102 | done
|
---|
103 | after KILL -STOP, foregrounding %1
|
---|
104 | sleep 10
|
---|
105 | done
|
---|
Note:
See
TracBrowser
for help on using the repository browser.