i-bash/tests/jobs.right

109 lines
2.8 KiB
Text
Raw Normal View History

2004-07-27 13:29:18 +00:00
./jobs2.sub: line 9: fg: job 1 started without job control
1998-04-17 19:52:44 +00:00
fg: 1
2000-03-17 21:46:59 +00:00
Waiting for job 0
job 0 returns 0
Waiting for job 1
job 1 returns 0
Waiting for job 2
job 2 returns 0
Waiting for job 3
job 3 returns 0
Waiting for job 4
job 4 returns 0
Waiting for job 5
job 5 returns 0
Waiting for job 6
job 6 returns 0
Waiting for job 7
job 7 returns 0
2004-07-27 13:29:18 +00:00
[1] Running sleep 5 &
[2] Running sleep 5 &
[3] Running sleep 5 &
[4]- Running sleep 5 &
[5]+ Running ( sleep 5; exit 4 ) &
4
1997-06-05 14:59:13 +00:00
0
2004-07-27 13:29:18 +00:00
i killed it
12
[1]- Running sleep 20 &
[3]+ Running sleep 20 &
2004-07-27 13:29:18 +00:00
0
./jobs.tests: line 22: wait: %1: no such job
./jobs.tests: line 27: fg: no job control
1997-06-05 14:59:13 +00:00
wait-for-pid
wait-errors
./jobs.tests: line 40: wait: `1-1': not a pid or valid job spec
./jobs.tests: line 41: wait: `-4': not a pid or valid job spec
1997-06-05 14:59:13 +00:00
wait-for-background-pids
async list wait-for-background-pids
async list wait for child
forked
wait-when-no-children
wait-for-job
./jobs.tests: line 63: wait: %2: no such job
1997-06-05 14:59:13 +00:00
127
async list wait-for-job
forked
fg-bg 1
sleep 5
fg-bg 2
sleep 5
fg-bg 3
sleep 5
fg-bg 4
sleep 5
fg-bg 5
./jobs.tests: line 90: fg: %2: no such job
./jobs.tests: line 91: bg: job 1 already in background
1997-06-05 14:59:13 +00:00
fg-bg 6
./jobs.tests: line 98: fg: -s: invalid option
1997-06-05 14:59:13 +00:00
fg: usage: fg [job_spec]
./jobs.tests: line 99: bg: -s: invalid option
2005-12-07 14:08:12 +00:00
bg: usage: bg [job_spec ...]
./jobs.tests: line 104: disown: -s: invalid option
disown: usage: disown [-h] [-ar] [jobspec ... | pid ...]
./jobs.tests: line 108: disown: %1: no such job
./jobs.tests: line 111: disown: %2: no such job
1997-06-05 14:59:13 +00:00
wait-for-non-child
./jobs.tests: line 114: wait: pid 1 is not a child of this shell
1997-06-05 14:59:13 +00:00
127
3 -- 1 2 3 -- 1 - 2 - 3
1998-04-17 19:52:44 +00:00
[1] Running sleep 300 &
[2]- Running sleep 350 &
[3]+ Running sleep 400 &
1997-06-05 14:59:13 +00:00
running jobs:
1998-04-17 19:52:44 +00:00
[1] Running sleep 300 &
[2]- Running sleep 350 &
[3]+ Running sleep 400 &
./jobs.tests: line 131: kill: %4: no such job
./jobs.tests: line 133: jobs: %4: no such job
1998-04-17 19:52:44 +00:00
current job:
[3]+ Running sleep 400 &
previous job:
[2]- Running sleep 350 &
1997-06-05 14:59:13 +00:00
after kill -STOP
running jobs:
1998-04-17 19:52:44 +00:00
[1] Running sleep 300 &
[3]- Running sleep 400 &
1997-06-05 14:59:13 +00:00
stopped jobs:
1998-04-17 19:52:44 +00:00
[2]+ Stopped sleep 350
1997-06-05 14:59:13 +00:00
after disown
1998-04-17 19:52:44 +00:00
[2]+ Stopped sleep 350
[3]- Running sleep 400 &
1997-06-05 14:59:13 +00:00
running jobs:
1998-04-17 19:52:44 +00:00
[3]- Running sleep 400 &
1997-06-05 14:59:13 +00:00
stopped jobs:
1998-04-17 19:52:44 +00:00
[2]+ Stopped sleep 350
1997-06-05 14:59:13 +00:00
after kill -s CONT
running jobs:
1998-04-17 19:52:44 +00:00
[2]+ Running sleep 350 &
[3]- Running sleep 400 &
1997-06-05 14:59:13 +00:00
stopped jobs:
after kill -STOP, backgrounding %3:
[3]+ sleep 400 &
killing...
done
after KILL -STOP, foregrounding %1
sleep 10
done