mirror of
https://git.savannah.gnu.org/git/parallel.git
synced 2024-11-22 22:17:54 +00:00
104 lines
4 KiB
Plaintext
104 lines
4 KiB
Plaintext
### Test --transfer --return --cleanup - files with newline
|
|
### --transfer - file with newline
|
|
newline
|
|
newline
|
|
good if no file
|
|
ls: cannot access 'tmp/parallel.file*': No such file or directory
|
|
ls: tmp/parallel.file*: No such file or directory
|
|
### --transfer --cleanup - file with newline
|
|
newline
|
|
newline
|
|
good if no file
|
|
ls: cannot access 'tmp/parallel.file*': No such file or directory
|
|
ls: tmp/parallel.file*: No such file or directory
|
|
### --return - file with newline
|
|
tmp/parallel.file.
|
|
newline1.out
|
|
tmp/parallel.file.
|
|
newline2.out
|
|
### --return --cleanup - file with newline
|
|
tmp/parallel.file.
|
|
newline1.out
|
|
tmp/parallel.file.
|
|
newline2.out
|
|
good if no file
|
|
ls: cannot access 'tmp/parallel.file*': No such file or directory
|
|
OK
|
|
ls: tmp/parallel.file*: No such file or directory
|
|
OK
|
|
### --transfer --return --cleanup - file with newline
|
|
tmp/parallel.file.
|
|
newline1.out
|
|
tmp/parallel.file.
|
|
newline2.out
|
|
good if no file
|
|
ls: cannot access 'tmp/parallel.file*': No such file or directory
|
|
OK
|
|
ls: tmp/parallel.file*: No such file or directory
|
|
OK
|
|
### --trc - file with newline
|
|
tmp/parallel.file.
|
|
newline1.out
|
|
tmp/parallel.file.
|
|
newline2.out
|
|
good if no file
|
|
ls: cannot access 'tmp/parallel.file*': No such file or directory
|
|
OK
|
|
ls: tmp/parallel.file*: No such file or directory
|
|
OK
|
|
### --trc - multiple file with newline
|
|
tmp/parallel.file.
|
|
newline1.out
|
|
tmp/parallel.file.
|
|
newline1.out2
|
|
tmp/parallel.file.
|
|
newline2.out
|
|
tmp/parallel.file.
|
|
newline2.out2
|
|
good if no file
|
|
ls: cannot access 'tmp/parallel.file*': No such file or directory
|
|
OK
|
|
ls: tmp/parallel.file*: No such file or directory
|
|
OK
|
|
### Test use special ssh
|
|
tmp/parallel.file.
|
|
newline1.out
|
|
tmp/parallel.file.
|
|
newline1.out2
|
|
tmp/parallel.file.
|
|
newline2.out
|
|
tmp/parallel.file.
|
|
newline2.out2
|
|
good if no file
|
|
ls: cannot access 'tmp/parallel.file*': No such file or directory
|
|
OK
|
|
ls: tmp/parallel.file*: No such file or directory
|
|
OK
|
|
Input for ssh
|
|
-l vagrant one-server -- mkdir -p ./.
|
|
-l vagrant one-server rsync --server -lDrRze.iLsfxC . ./.
|
|
-l vagrant one-server -- exec perl -e '@GNU_Parallel=split/_/,"use_IPC::Open3;_use_MIME::Base64";eval"@GNU_Parallel";$chld=$SIG{CHLD};$SIG{CHLD}="IGNORE";my$zip=(grep{-x$_}"/usr/local/bin/bzip2")[0]||"bzip2";open3($in,$out,">&STDERR",$zip,"-dc");if(my$perlpid=fork){close$in;$eval=join"",<$out>;close$out;}else{close$out;print$in(decode_base64(join"",@ARGV));close$in;exit;}wait;$SIG{CHLD}=$chld;eval$eval;' base64
|
|
-l vagrant one-server cd ././tmp; rsync --server --sender -lDrRze.iLsfxC . './parallel.file.
|
|
newlineX.out'
|
|
-l vagrant one-server cd ././tmp; rsync --server --sender -lDrRze.iLsfxC . './parallel.file.
|
|
newlineX.out2'
|
|
-l vagrant one-server -- sh -c 'rm -f '"'"'./tmp/parallel.file.
|
|
newlineX'"'"' 2>/dev/null;rmdir ./tmp/ ./ 2>/dev/null;'
|
|
-l vagrant one-server -- sh -c 'rm -f '"'"'./tmp/parallel.file.
|
|
newlineX.out'"'"' 2>/dev/null;rmdir ./tmp/ ./ 2>/dev/null;'
|
|
-l vagrant one-server -- sh -c 'rm -f '"'"'./tmp/parallel.file.
|
|
newlineX.out2'"'"' 2>/dev/null;rmdir ./tmp/ ./ 2>/dev/null;'
|
|
-l vagrant one-server -- mkdir -p ./.
|
|
-l vagrant one-server rsync --server -lDrRze.iLsfxC . ./.
|
|
-l vagrant one-server -- exec perl -e '@GNU_Parallel=split/_/,"use_IPC::Open3;_use_MIME::Base64";eval"@GNU_Parallel";$chld=$SIG{CHLD};$SIG{CHLD}="IGNORE";my$zip=(grep{-x$_}"/usr/local/bin/bzip2")[0]||"bzip2";open3($in,$out,">&STDERR",$zip,"-dc");if(my$perlpid=fork){close$in;$eval=join"",<$out>;close$out;}else{close$out;print$in(decode_base64(join"",@ARGV));close$in;exit;}wait;$SIG{CHLD}=$chld;eval$eval;' base64
|
|
-l vagrant one-server cd ././tmp; rsync --server --sender -lDrRze.iLsfxC . './parallel.file.
|
|
newlineX.out'
|
|
-l vagrant one-server cd ././tmp; rsync --server --sender -lDrRze.iLsfxC . './parallel.file.
|
|
newlineX.out2'
|
|
-l vagrant one-server -- sh -c 'rm -f '"'"'./tmp/parallel.file.
|
|
newlineX'"'"' 2>/dev/null;rmdir ./tmp/ ./ 2>/dev/null;'
|
|
-l vagrant one-server -- sh -c 'rm -f '"'"'./tmp/parallel.file.
|
|
newlineX.out'"'"' 2>/dev/null;rmdir ./tmp/ ./ 2>/dev/null;'
|
|
-l vagrant one-server -- sh -c 'rm -f '"'"'./tmp/parallel.file.
|
|
newlineX.out2'"'"' 2>/dev/null;rmdir ./tmp/ ./ 2>/dev/null;'
|