parallel/unittest/tests-to-run/test13.sh

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