2010-11-13 13:57:39 +00:00
|
|
|
### Test $PARALLEL
|
|
|
|
a
|
|
|
|
b
|
|
|
|
c
|
|
|
|
a
|
|
|
|
b
|
|
|
|
c
|
|
|
|
a
|
|
|
|
b
|
|
|
|
c
|
|
|
|
echo 1 echo 2 a
|
|
|
|
1 echo 2 a
|
|
|
|
echo 1 echo 2 b
|
|
|
|
1 echo 2 b
|
|
|
|
echo 1 echo 2 c
|
|
|
|
1 echo 2 c
|
|
|
|
a
|
|
|
|
b
|
|
|
|
c
|
|
|
|
echo 1 echo 2 a
|
|
|
|
1 echo 2 a
|
|
|
|
echo 1 echo 2 b
|
|
|
|
1 echo 2 b
|
|
|
|
echo 1 echo 2 c
|
|
|
|
1 echo 2 c
|
|
|
|
### Test ugly quoting from $PARALLEL
|
|
|
|
perl -pe '$a=1; print$a' /dev/fd/63
|
|
|
|
1a
|
|
|
|
perl -pe '$a=1; print$a' /dev/fd/62
|
|
|
|
1b
|
2011-07-20 23:58:23 +00:00
|
|
|
perl -pe "\$a=1; print\$a" <(echo foo)
|
|
|
|
1foo
|
2010-11-13 13:57:39 +00:00
|
|
|
### Test ugly quoting from profile file
|
|
|
|
perl -pe '$a=1; print $a' /dev/fd/63
|
|
|
|
1a
|
|
|
|
perl -pe '$a=1; print $a' /dev/fd/62
|
|
|
|
1b
|
2012-08-08 19:25:18 +00:00
|
|
|
### Test ugly quoting from profile file --plain
|
|
|
|
echo /dev/fd/63
|
|
|
|
/dev/fd/63
|
|
|
|
echo /dev/fd/62
|
|
|
|
/dev/fd/62
|
2011-07-20 23:58:23 +00:00
|
|
|
echo foo
|
|
|
|
foo
|
2014-12-29 23:31:02 +00:00
|
|
|
ssh parallel@redhat9.tange.dk ssh centos3.tange.dk 'eval `echo $SHELL | grep "/t\{0,1\}csh" > /dev/null && echo setenv PARALLEL_SEQ '$PARALLEL_SEQ'\; setenv PARALLEL_PID '$PARALLEL_PID' || echo PARALLEL_SEQ='$PARALLEL_SEQ'\;export PARALLEL_SEQ\; PARALLEL_PID='$PARALLEL_PID'\;export PARALLEL_PID` ;' exec\ perl\ -e\ \'\$SIG\{CHLD\}=sub\{\$done=1\;\}\;\$pid=fork\;unless\(\$pid\)\{setpgrp\;exec\$ENV\{SHELL\},\"-c\",@ARGV\;die\"exec:\$\!\\n\"\;\}do\{\$s=\$s\<1\?0.001+\$s\*1.03:\$s\;select\(undef,undef,undef,\$s\)\;\}until\(\$done\|\|getppid==1\)\;kill\(SIGHUP,-\$\{pid\}\)unless\$done\;wait\;exit\(\$\?\&127\?128+\(\$\?\&127\):1+\$\?\>\>8\)\'\ perl\\\ -pe\\\ \\\"\\\\\\\$a=1\\\;\\\ print\\\ \\\\\\\$a\\\"\\\ \\\<\\\(echo\\\ foo\\\);
|
2011-07-20 23:58:23 +00:00
|
|
|
1foo
|
2010-11-13 13:57:39 +00:00
|
|
|
### Test quoting of $ in command from profile file
|
2011-07-20 23:58:23 +00:00
|
|
|
perl -pe '$a=1; print $a' <(echo foo)
|
|
|
|
1foo
|
2012-08-08 19:25:18 +00:00
|
|
|
### Test quoting of $ in command from profile file --plain
|
|
|
|
cat <(echo foo)
|
|
|
|
foo
|
2010-11-13 13:57:39 +00:00
|
|
|
### Test quoting of $ in command from $PARALLEL
|
2011-07-20 23:58:23 +00:00
|
|
|
perl -pe "\$a=1; print \$a" <(echo foo)
|
|
|
|
1foo
|
2012-08-08 19:25:18 +00:00
|
|
|
### Test quoting of $ in command from $PARALLEL --plain
|
|
|
|
cat <(echo foo)
|
|
|
|
foo
|
2010-11-13 13:57:39 +00:00
|
|
|
### Test quoting of space in arguments (-S) from profile file
|
2011-07-20 23:58:23 +00:00
|
|
|
perl -pe '$a=1; print $a' <(echo foo)
|
|
|
|
1foo
|
2012-08-08 19:25:18 +00:00
|
|
|
### Test quoting of space in arguments (-S) from profile file --plain
|
|
|
|
cat <(echo foo)
|
|
|
|
foo
|
2010-11-13 13:57:39 +00:00
|
|
|
### Test quoting of space in arguments (-S) from $PARALLEL
|
2011-07-20 23:58:23 +00:00
|
|
|
perl -pe "\$a=1; print \$a" <(echo foo)
|
|
|
|
1foo
|
2010-11-13 13:57:39 +00:00
|
|
|
### Test quoting of space in long arguments (--sshlogin) from profile file
|
2011-07-20 23:58:23 +00:00
|
|
|
perl -pe '$a=1; print $a' <(echo foo)
|
|
|
|
1foo
|
2010-11-13 13:57:39 +00:00
|
|
|
### Test quoting of space in arguments (-S) from $PARALLEL
|
2011-07-20 23:58:23 +00:00
|
|
|
perl -pe "\$a=1; print \$a" <(echo foo)
|
|
|
|
1foo
|
2011-10-13 21:58:02 +00:00
|
|
|
### Test merging of profiles - sort needed because -k only works on the single machine
|
2011-10-17 01:10:32 +00:00
|
|
|
parallel@parallel-server1 a
|
2011-10-13 21:58:02 +00:00
|
|
|
parallel@parallel-server2 a
|
2012-08-08 19:25:18 +00:00
|
|
|
### Test merging of profiles - sort needed because -k only works on the single machine --plain
|
|
|
|
a
|