mirror of
https://git.savannah.gnu.org/git/parallel.git
synced 2024-11-22 22:17:54 +00:00
3fa2a4a8d4
Prepared for name change to 'par'
12 lines
241 B
Bash
12 lines
241 B
Bash
#!/bin/bash
|
|
|
|
PAR=parallel
|
|
|
|
# Test -k
|
|
ulimit -n 50
|
|
(echo "sleep 3; echo begin"; seq 1 30 | $PAR -kq echo "sleep 1; echo {}"; echo "echo end") \
|
|
| $PAR -k -j0
|
|
|
|
# Test SIGTERM
|
|
(sleep 5; killall $PAR -TERM) & seq 1 100 | $PAR -k sleep 3';' echo
|