mirror of
https://git.savannah.gnu.org/git/parallel.git
synced 2024-12-23 13:17:54 +00:00
8865cbb10f
The code is quite messy, the implementation is fairly slow, but the structure seems sound and it passes the testsuite. basename {/} and {/.} implemented. Flushing of STDERR and STDOUT after each job completes.
73 lines
704 B
Plaintext
73 lines
704 B
Plaintext
### Test -k
|
|
Warning: Only enough filehandles to run 19 jobs in parallel. Raising ulimit -n may help
|
|
begin
|
|
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
|
|
end
|
|
### Test --keep-order
|
|
job0
|
|
job1
|
|
job2
|
|
### Test --keeporder
|
|
job0
|
|
job1
|
|
job2
|
|
### Test SIGTERM
|
|
1
|
|
10
|
|
11
|
|
12
|
|
13
|
|
14
|
|
15
|
|
16
|
|
17
|
|
18
|
|
2
|
|
3
|
|
4
|
|
5
|
|
6
|
|
7
|
|
8
|
|
9
|
|
parallel: SIGTERM received. No new jobs will be started.
|
|
parallel: Waiting for these 9 jobs to finish. Send SIGTERM again to stop now.
|
|
parallel: sleep 3; echo 10
|
|
parallel: sleep 3; echo 11
|
|
parallel: sleep 3; echo 12
|
|
parallel: sleep 3; echo 13
|
|
parallel: sleep 3; echo 14
|
|
parallel: sleep 3; echo 15
|
|
parallel: sleep 3; echo 16
|
|
parallel: sleep 3; echo 17
|
|
parallel: sleep 3; echo 18
|