mirror of
https://git.savannah.gnu.org/git/parallel.git
synced 2024-11-22 22:17:54 +00:00
39 lines
785 B
Bash
39 lines
785 B
Bash
#!/bin/bash
|
|
|
|
echo '### Test of #! --shebang'
|
|
cat >/tmp/shebang <<EOF
|
|
#!/usr/local/bin/parallel --shebang -rk echo
|
|
A
|
|
B
|
|
C
|
|
EOF
|
|
chmod 755 /tmp/shebang
|
|
/tmp/shebang
|
|
|
|
echo '### Test of #! --hashbang'
|
|
cat >/tmp/shebang <<EOF
|
|
#!/usr/local/bin/parallel --hashbang -rk echo
|
|
A
|
|
B
|
|
C
|
|
EOF
|
|
chmod 755 /tmp/shebang
|
|
/tmp/shebang
|
|
|
|
echo '### Test of #! with 2 files as input (2 columns)'
|
|
cat >'/tmp/she <bang>"' <<EOF
|
|
#!/usr/local/bin/parallel --shebang -rk --xapply -a /tmp/123 echo
|
|
A
|
|
B
|
|
C
|
|
EOF
|
|
chmod 755 '/tmp/she <bang>"'
|
|
seq 1 3 >/tmp/123
|
|
'/tmp/she <bang>"'
|
|
|
|
echo '### bug #36595: silent loss of input with --pipe and --sshlogin'
|
|
seq 10000 | xargs | parallel --pipe -S 10/localhost cat | wc
|
|
|
|
echo 'bug #36707: --controlmaster eats jobs'
|
|
seq 2 | parallel -k --controlmaster --sshlogin localhost echo OK{}
|