mirror of
https://git.savannah.gnu.org/git/parallel.git
synced 2024-11-30 01:47:56 +00:00
112 lines
4.2 KiB
Plaintext
112 lines
4.2 KiB
Plaintext
### Test --transfer --return --cleanup - files with newline
|
|
### --transfer - file with newline
|
|
newline
|
|
newline
|
|
good if no file
|
|
ls: 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: 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: 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: 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: 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: 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: tmp/parallel.file*: No such file or directory
|
|
OK
|
|
ls: tmp/parallel.file*: No such file or directory
|
|
OK
|
|
Input for ssh
|
|
parallel@parallel-server1 mkdir -p ./.
|
|
-l parallel parallel-server1 rsync --server -lDrRze.iLsfx . ./.
|
|
parallel@parallel-server1 eval `echo $SHELL | grep "/t\{0,1\}csh" > /dev/null && echo setenv PARALLEL_SEQ X\; setenv PARALLEL_PID 00000 || echo PARALLEL_SEQ=X\;export PARALLEL_SEQ\; PARALLEL_PID=00000\;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)' cat\ tmp/parallel.file.\''
|
|
'\'newlineX\ \>\ tmp/parallel.file.\''
|
|
'\'newlineX.out\;cat\ tmp/parallel.file.\''
|
|
'\'newlineX\ \>\ tmp/parallel.file.\''
|
|
'\'newlineX.out2
|
|
-l parallel parallel-server1 cd ././tmp; rsync --server --sender -lDrRze.iLsfx . ./parallel.file.'
|
|
'newlineX.out
|
|
-l parallel parallel-server1 cd ././tmp; rsync --server --sender -lDrRze.iLsfx . ./parallel.file.'
|
|
'newlineX.out2
|
|
parallel@parallel-server1 (rm -f ./tmp/parallel.file.'
|
|
'newlineX; rmdir ./tmp/ ./ 2>/dev/null;)
|
|
parallel@parallel-server1 (rm -f ./tmp/parallel.file.'
|
|
'newlineX.out; rmdir ./tmp/ ./ 2>/dev/null;)
|
|
parallel@parallel-server1 (rm -f ./tmp/parallel.file.'
|
|
'newlineX.out2; rmdir ./tmp/ ./ 2>/dev/null;)
|
|
parallel@parallel-server2 mkdir -p ./.
|
|
-l parallel parallel-server2 rsync --server -lDrRze.iLsfx . ./.
|
|
parallel@parallel-server2 eval `echo $SHELL | grep "/t\{0,1\}csh" > /dev/null && echo setenv PARALLEL_SEQ X\; setenv PARALLEL_PID 00000 || echo PARALLEL_SEQ=X\;export PARALLEL_SEQ\; PARALLEL_PID=00000\;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)' cat\ tmp/parallel.file.\''
|
|
'\'newlineX\ \>\ tmp/parallel.file.\''
|
|
'\'newlineX.out\;cat\ tmp/parallel.file.\''
|
|
'\'newlineX\ \>\ tmp/parallel.file.\''
|
|
'\'newlineX.out2
|
|
-l parallel parallel-server2 cd ././tmp; rsync --server --sender -lDrRze.iLsfx . ./parallel.file.'
|
|
'newlineX.out
|
|
-l parallel parallel-server2 cd ././tmp; rsync --server --sender -lDrRze.iLsfx . ./parallel.file.'
|
|
'newlineX.out2
|
|
parallel@parallel-server2 (rm -f ./tmp/parallel.file.'
|
|
'newlineX; rmdir ./tmp/ ./ 2>/dev/null;)
|
|
parallel@parallel-server2 (rm -f ./tmp/parallel.file.'
|
|
'newlineX.out; rmdir ./tmp/ ./ 2>/dev/null;)
|
|
parallel@parallel-server2 (rm -f ./tmp/parallel.file.'
|
|
'newlineX.out2; rmdir ./tmp/ ./ 2>/dev/null;)
|