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
|
2015-01-02 12:07:44 +00:00
|
|
|
one-server mkdir -p ./.
|
|
|
|
-l parallel one-server rsync --server -lDrRze.iLsfx . ./.
|
|
|
|
one-server exec perl -e '@u=("use","IPC::Open3;");eval"@u";$SIG{CHLD}='IGNORE';my($gzin_fh,$gzout_fh,$eval);my$gzpid=open3($gzin_fh,$gzout_fh,">&STDERR","gzip","-dc");if(my$perlpid=fork){close$gzin_fh;$eval=join"",<$gzout_fh>;close$gzout_fh;}else{close$gzout_fh;print$gzin_fh(pack("H*",join"",@ARGV));close$gzin_fh;exit;}wait;eval$eval;' hex
|
|
|
|
-l parallel one-server cd ././tmp; rsync --server --sender -lDrRze.iLsfx . ./parallel.file.'
|
2014-10-25 10:44:10 +00:00
|
|
|
'newlineX.out
|
2015-01-02 12:07:44 +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
|
2015-01-02 12:07:44 +00:00
|
|
|
one-server (rm -f ./tmp/parallel.file.'
|
2014-10-25 10:44:10 +00:00
|
|
|
'newlineX; rmdir ./tmp/ ./ 2>/dev/null;)
|
2015-01-02 12:07:44 +00:00
|
|
|
one-server (rm -f ./tmp/parallel.file.'
|
2014-10-25 10:44:10 +00:00
|
|
|
'newlineX.out; rmdir ./tmp/ ./ 2>/dev/null;)
|
2015-01-02 12:07:44 +00:00
|
|
|
one-server (rm -f ./tmp/parallel.file.'
|
2014-10-25 10:44:10 +00:00
|
|
|
'newlineX.out2; rmdir ./tmp/ ./ 2>/dev/null;)
|
2015-01-02 12:07:44 +00:00
|
|
|
one-server mkdir -p ./.
|
|
|
|
-l parallel one-server rsync --server -lDrRze.iLsfx . ./.
|
|
|
|
one-server exec perl -e '@u=("use","IPC::Open3;");eval"@u";$SIG{CHLD}='IGNORE';my($gzin_fh,$gzout_fh,$eval);my$gzpid=open3($gzin_fh,$gzout_fh,">&STDERR","gzip","-dc");if(my$perlpid=fork){close$gzin_fh;$eval=join"",<$gzout_fh>;close$gzout_fh;}else{close$gzout_fh;print$gzin_fh(pack("H*",join"",@ARGV));close$gzin_fh;exit;}wait;eval$eval;' hex
|
|
|
|
-l parallel one-server cd ././tmp; rsync --server --sender -lDrRze.iLsfx . ./parallel.file.'
|
2014-10-25 10:44:10 +00:00
|
|
|
'newlineX.out
|
2015-01-02 12:07:44 +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
|
2015-01-02 12:07:44 +00:00
|
|
|
one-server (rm -f ./tmp/parallel.file.'
|
2014-10-25 10:44:10 +00:00
|
|
|
'newlineX; rmdir ./tmp/ ./ 2>/dev/null;)
|
2015-01-02 12:07:44 +00:00
|
|
|
one-server (rm -f ./tmp/parallel.file.'
|
2014-10-25 10:44:10 +00:00
|
|
|
'newlineX.out; rmdir ./tmp/ ./ 2>/dev/null;)
|
2015-01-02 12:07:44 +00:00
|
|
|
one-server (rm -f ./tmp/parallel.file.'
|
2014-10-25 10:44:10 +00:00
|
|
|
'newlineX.out2; rmdir ./tmp/ ./ 2>/dev/null;)
|