2010-05-30 22:30:01 +00:00
|
|
|
### Test --transfer --return --cleanup - files with newline
|
|
|
|
### --transfer - file with newline
|
|
|
|
newline
|
|
|
|
newline
|
|
|
|
good if no file
|
2013-03-24 16:24:59 +00:00
|
|
|
ls: tmp/parallel.file*: No such file or directory
|
|
|
|
ls: tmp/parallel.file*: No such file or directory
|
2010-05-30 22:30:01 +00:00
|
|
|
### --transfer --cleanup - file with newline
|
|
|
|
newline
|
|
|
|
newline
|
|
|
|
good if no file
|
2013-03-24 16:24:59 +00:00
|
|
|
ls: tmp/parallel.file*: No such file or directory
|
|
|
|
ls: tmp/parallel.file*: No such file or directory
|
2010-05-30 22:30:01 +00:00
|
|
|
### --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
|
2013-03-24 16:24:59 +00:00
|
|
|
ls: tmp/parallel.file*: No such file or directory
|
2010-05-30 22:30:01 +00:00
|
|
|
OK
|
2013-03-24 16:24:59 +00:00
|
|
|
ls: tmp/parallel.file*: No such file or directory
|
2010-05-30 22:30:01 +00:00
|
|
|
OK
|
|
|
|
### --transfer --return --cleanup - file with newline
|
|
|
|
tmp/parallel.file.
|
|
|
|
newline1.out
|
|
|
|
tmp/parallel.file.
|
|
|
|
newline2.out
|
|
|
|
good if no file
|
2013-03-24 16:24:59 +00:00
|
|
|
ls: tmp/parallel.file*: No such file or directory
|
2010-05-30 22:30:01 +00:00
|
|
|
OK
|
2013-03-24 16:24:59 +00:00
|
|
|
ls: tmp/parallel.file*: No such file or directory
|
2010-05-30 22:30:01 +00:00
|
|
|
OK
|
|
|
|
### --trc - file with newline
|
|
|
|
tmp/parallel.file.
|
|
|
|
newline1.out
|
|
|
|
tmp/parallel.file.
|
|
|
|
newline2.out
|
|
|
|
good if no file
|
2013-03-24 16:24:59 +00:00
|
|
|
ls: tmp/parallel.file*: No such file or directory
|
2010-05-30 22:30:01 +00:00
|
|
|
OK
|
2013-03-24 16:24:59 +00:00
|
|
|
ls: tmp/parallel.file*: No such file or directory
|
2010-05-30 22:30:01 +00:00
|
|
|
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
|
2013-03-24 16:24:59 +00:00
|
|
|
ls: tmp/parallel.file*: No such file or directory
|
2010-05-30 22:30:01 +00:00
|
|
|
OK
|
2013-03-24 16:24:59 +00:00
|
|
|
ls: tmp/parallel.file*: No such file or directory
|
2010-05-30 22:30:01 +00:00
|
|
|
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
|
2013-03-24 16:24:59 +00:00
|
|
|
ls: tmp/parallel.file*: No such file or directory
|
2010-05-30 22:30:01 +00:00
|
|
|
OK
|
2013-03-24 16:24:59 +00:00
|
|
|
ls: tmp/parallel.file*: No such file or directory
|
2010-05-30 22:30:01 +00:00
|
|
|
OK
|
|
|
|
Input for ssh
|
2016-05-17 00:11:38 +00:00
|
|
|
-l parallel one-server -- mkdir -p ./.
|
2016-08-03 21:45:13 +00:00
|
|
|
-l parallel one-server rsync --server -lDrRze.iLsfx . ./.
|
2017-01-06 18:10:20 +00:00
|
|
|
-l parallel 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
|
2016-08-03 21:45:13 +00:00
|
|
|
-l parallel one-server cd ././tmp; rsync --server --sender -lDrRze.iLsfx . ./parallel.file.'
|
2014-10-25 10:44:10 +00:00
|
|
|
'newlineX.out
|
2016-08-03 21:45:13 +00:00
|
|
|
-l parallel one-server cd ././tmp; rsync --server --sender -lDrRze.iLsfx . ./parallel.file.'
|
2014-10-25 10:44:10 +00:00
|
|
|
'newlineX.out2
|
2016-08-03 21:45:13 +00:00
|
|
|
-l parallel one-server -- rm -f ./tmp/parallel.file.'
|
|
|
|
'newlineX; sh -c rmdir\ ./tmp/\ ./\ 2\>/dev/null\;
|
|
|
|
-l parallel one-server -- rm -f ./tmp/parallel.file.'
|
|
|
|
'newlineX.out; sh -c rmdir\ ./tmp/\ ./\ 2\>/dev/null\;
|
|
|
|
-l parallel one-server -- rm -f ./tmp/parallel.file.'
|
|
|
|
'newlineX.out2; sh -c rmdir\ ./tmp/\ ./\ 2\>/dev/null\;
|
2016-05-17 00:11:38 +00:00
|
|
|
-l parallel one-server -- mkdir -p ./.
|
2016-08-03 21:45:13 +00:00
|
|
|
-l parallel one-server rsync --server -lDrRze.iLsfx . ./.
|
2017-01-06 18:10:20 +00:00
|
|
|
-l parallel 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
|
2016-08-03 21:45:13 +00:00
|
|
|
-l parallel one-server cd ././tmp; rsync --server --sender -lDrRze.iLsfx . ./parallel.file.'
|
2014-10-25 10:44:10 +00:00
|
|
|
'newlineX.out
|
2016-08-03 21:45:13 +00:00
|
|
|
-l parallel one-server cd ././tmp; rsync --server --sender -lDrRze.iLsfx . ./parallel.file.'
|
2014-10-25 10:44:10 +00:00
|
|
|
'newlineX.out2
|
2016-08-03 21:45:13 +00:00
|
|
|
-l parallel one-server -- rm -f ./tmp/parallel.file.'
|
|
|
|
'newlineX; sh -c rmdir\ ./tmp/\ ./\ 2\>/dev/null\;
|
|
|
|
-l parallel one-server -- rm -f ./tmp/parallel.file.'
|
|
|
|
'newlineX.out; sh -c rmdir\ ./tmp/\ ./\ 2\>/dev/null\;
|
|
|
|
-l parallel one-server -- rm -f ./tmp/parallel.file.'
|
|
|
|
'newlineX.out2; sh -c rmdir\ ./tmp/\ ./\ 2\>/dev/null\;
|