2014-11-13 03:19:33 +00:00
|
|
|
echo '### --hostgroup force ncpu'
|
|
|
|
### --hostgroup force ncpu
|
2015-01-08 23:00:21 +00:00
|
|
|
parallel --delay 0.1 --hgrp -S @g1/1/parallel@lo -S @g2/3/lo whoami\;sleep 0.2{} ::: {1..8} | sort
|
2014-11-13 03:19:33 +00:00
|
|
|
parallel
|
|
|
|
parallel
|
|
|
|
tange
|
|
|
|
tange
|
|
|
|
tange
|
|
|
|
tange
|
|
|
|
tange
|
|
|
|
tange
|
|
|
|
echo '### --hostgroup two group arg'
|
|
|
|
### --hostgroup two group arg
|
2015-01-08 23:00:21 +00:00
|
|
|
parallel -k --sshdelay 0.1 --hgrp -S @g1/1/parallel@lo -S @g2/3/lo whoami\;sleep 0.3{} ::: {1..8}@g1+g2 | sort
|
2014-11-13 03:19:33 +00:00
|
|
|
parallel
|
|
|
|
parallel
|
|
|
|
tange
|
|
|
|
tange
|
|
|
|
tange
|
|
|
|
tange
|
|
|
|
tange
|
|
|
|
tange
|
|
|
|
echo '### --hostgroup one group arg'
|
|
|
|
### --hostgroup one group arg
|
2015-01-08 23:00:21 +00:00
|
|
|
parallel --delay 0.1 --hgrp -S @g1/1/parallel@lo -S @g2/3/lo whoami\;sleep 0.2{} ::: {1..8}@g2
|
2014-11-13 03:19:33 +00:00
|
|
|
tange
|
|
|
|
tange
|
|
|
|
tange
|
|
|
|
tange
|
|
|
|
tange
|
|
|
|
tange
|
|
|
|
tange
|
|
|
|
tange
|
|
|
|
echo '### --hostgroup multiple group arg + unused group'
|
|
|
|
### --hostgroup multiple group arg + unused group
|
2015-01-08 23:00:21 +00:00
|
|
|
parallel --delay 0.1 --hgrp -S @g1/1/parallel@lo -S @g1/3/lo -S @g3/100/tcsh@lo whoami\;sleep 0.2{} ::: {1..8}@g1+g2 | sort
|
2014-11-13 03:19:33 +00:00
|
|
|
parallel
|
|
|
|
parallel
|
|
|
|
tange
|
|
|
|
tange
|
|
|
|
tange
|
|
|
|
tange
|
|
|
|
tange
|
|
|
|
tange
|
|
|
|
echo '### --hostgroup two groups @'
|
|
|
|
### --hostgroup two groups @
|
|
|
|
parallel -k --hgrp -S @g1/parallel@lo -S @g2/lo --tag whoami\;echo ::: parallel@g1 tange@g2
|
|
|
|
parallel parallel
|
|
|
|
parallel parallel
|
|
|
|
tange tange
|
|
|
|
tange tange
|
|
|
|
echo '### --hostgroup'
|
|
|
|
### --hostgroup
|
|
|
|
parallel -k --hostgroup -S @grp1/lo echo ::: no_group explicit_group@grp1 implicit_group@lo
|
|
|
|
no_group
|
|
|
|
explicit_group
|
|
|
|
implicit_group
|
|
|
|
echo '### --hostgroup --sshlogin with @'
|
|
|
|
### --hostgroup --sshlogin with @
|
|
|
|
parallel -k --hostgroups -S parallel@lo echo ::: no_group implicit_group@parallel@lo
|
|
|
|
no_group
|
|
|
|
implicit_group
|
2014-11-13 15:57:41 +00:00
|
|
|
echo '### --hostgroup -S @group'
|
|
|
|
### --hostgroup -S @group
|
|
|
|
parallel -S @g1/ -S @g1/1/tcsh@lo -S @g1/1/localhost -S @g2/1/parallel@lo whoami\;true ::: {1..6} | sort
|
|
|
|
tange
|
|
|
|
tange
|
|
|
|
tange
|
|
|
|
tcsh
|
|
|
|
tcsh
|
|
|
|
tcsh
|
|
|
|
echo '### --hostgroup -S @group1 -Sgrp2'
|
|
|
|
### --hostgroup -S @group1 -Sgrp2
|
|
|
|
parallel -S @g1/ -S @g2 -S @g1/1/tcsh@lo -S @g1/1/localhost -S @g2/1/parallel@lo whoami\;true ::: {1..6} | sort
|
|
|
|
parallel
|
|
|
|
parallel
|
|
|
|
tange
|
|
|
|
tange
|
|
|
|
tcsh
|
|
|
|
tcsh
|
|
|
|
echo '### --hostgroup -S @group1+grp2'
|
|
|
|
### --hostgroup -S @group1+grp2
|
|
|
|
parallel -S @g1+g2 -S @g1/1/tcsh@lo -S @g1/1/localhost -S @g2/1/parallel@lo whoami\;true ::: {1..6} | sort
|
|
|
|
parallel
|
|
|
|
parallel
|
|
|
|
tange
|
|
|
|
tange
|
|
|
|
tcsh
|
|
|
|
tcsh
|
2015-01-06 22:25:23 +00:00
|
|
|
echo '### trailing space in sshlogin'
|
|
|
|
### trailing space in sshlogin
|
|
|
|
echo 'sshlogin trailing space' | parallel --sshlogin "ssh -l parallel localhost " echo
|
|
|
|
sshlogin trailing space
|
2015-01-18 23:08:07 +00:00
|
|
|
echo '### Special char file and dir transfer return and cleanup'
|
|
|
|
### Special char file and dir transfer return and cleanup
|
|
|
|
cd /tmp; mkdir -p d"`perl -e 'print pack("c*",1..9,11..46,48..255)'`"; echo local > d"`perl -e 'print pack("c*",1..9,11..46,48..255)'`"/f"`perl -e 'print pack("c*",1..9,11..46,48..255)'`"; ssh parallel@lo rm -rf d'*'/; mytouch() { cat d"`perl -e 'print pack("c*",1..9,11..46,48..255)'`"/f"`perl -e 'print pack("c*",1..9,11..46,48..255)'`" > d"`perl -e 'print pack("c*",1..9,11..46,48..255)'`"/g"`perl -e 'print pack("c*",1..9,11..46,48..255)'`"; echo remote OK >> d"`perl -e 'print pack("c*",1..9,11..46,48..255)'`"/g"`perl -e 'print pack("c*",1..9,11..46,48..255)'`"; }; export -f mytouch; parallel --env mytouch -Sparallel@lo --transfer --return d"`perl -e 'print pack("c*",1..9,11..46,48..255)'`"/g"`perl -e 'print pack("c*",1..9,11..46,48..255)'`" mytouch ::: d"`perl -e 'print pack("c*",1..9,11..46,48..255)'`"/f"`perl -e 'print pack("c*",1..9,11..46,48..255)'`"; cat d"`perl -e 'print pack("c*",1..9,11..46,48..255)'`"/g"`perl -e 'print pack("c*",1..9,11..46,48..255)'`"; # Should be changed to --return '{=s:/f:/g:=}'
|
|
|
|
local
|
|
|
|
remote OK
|