mirror of
https://git.savannah.gnu.org/git/parallel.git
synced 2024-11-22 14:07:55 +00:00
10 lines
243 B
Bash
10 lines
243 B
Bash
#!/bin/bash
|
|
|
|
# Test -k
|
|
ulimit -n 50
|
|
(echo "sleep 3; echo begin"; seq 1 30 | parallel -kq echo "sleep 1; echo {}"; echo "echo end") \
|
|
| parallel -k -j0
|
|
|
|
# Test SIGTERM
|
|
(sleep 5; killall parallel -TERM) & seq 1 100 | parallel -k sleep 3';' echo
|