mirror of
https://git.savannah.gnu.org/git/parallel.git
synced 2024-12-25 22:27:55 +00:00
test fixup. Passes test suite.
This commit is contained in:
parent
d709986cbe
commit
8fb1966254
|
@ -1834,6 +1834,29 @@ If there are more files than will fit on a single command line, the
|
|||
editor will be started again with the remaining files.
|
||||
|
||||
|
||||
=head1 EXAMPLE: Running sudo
|
||||
|
||||
B<sudo> requires a password to run a command as root. It caches the
|
||||
access, so you only need to enter the password again if you have not
|
||||
used B<sudo> for a while.
|
||||
|
||||
The command:
|
||||
|
||||
parallel sudo echo ::: This is a bad idea
|
||||
|
||||
is no good, as you would be prompted for the sudo password for each of
|
||||
the jobs. You can either do:
|
||||
|
||||
sudo echo This
|
||||
parallel sudo echo ::: is a good idea
|
||||
|
||||
or:
|
||||
|
||||
sudo parallel echo ::: This is a good idea
|
||||
|
||||
This way you only have to enter the sudo password once.
|
||||
|
||||
|
||||
=head1 EXAMPLE: GNU Parallel as queue system/batch manager
|
||||
|
||||
GNU B<parallel> can work as a simple job queue system or batch manager.
|
||||
|
|
|
@ -75,7 +75,7 @@ OK
|
|||
ls: cannot access tmp/parallel.file*: No such file or directory
|
||||
OK
|
||||
Input for ssh
|
||||
parallel-server3 rsync --server -lDErRze.iLsf . .
|
||||
parallel-server3 rsync --server -lDrRze.iLsf . .
|
||||
parallel-server3 PARALLEL_SEQ=2;export PARALLEL_SEQ;PARALLEL_PID=00000;export PARALLEL_PID; cat tmp/parallel.file.'
|
||||
'newline2 > tmp/parallel.file.'
|
||||
'newline2.out;cat tmp/parallel.file.'
|
||||
|
@ -87,7 +87,7 @@ parallel-server3 rsync --server --sender -lDrRze.iLsf --remove-source-files . ./
|
|||
'newline2.out2
|
||||
parallel-server3 rm -f ./tmp/parallel.file.'
|
||||
'newline2; rmdir 2>/dev/null ./tmp
|
||||
-l parallel parallel-server2 rsync --server -lDErRze.iLsf . .
|
||||
-l parallel parallel-server2 rsync --server -lDrRze.iLsf . .
|
||||
parallel@parallel-server2 PARALLEL_SEQ=1;export PARALLEL_SEQ;PARALLEL_PID=00000;export PARALLEL_PID; cat tmp/parallel.file.'
|
||||
'newline1 > tmp/parallel.file.'
|
||||
'newline1.out;cat tmp/parallel.file.'
|
||||
|
|
|
@ -77,3 +77,35 @@
|
|||
7 5 1
|
||||
7 5 2
|
||||
7 5 3
|
||||
### Test -E
|
||||
1 2 3
|
||||
1 2 4
|
||||
1 3 3
|
||||
1 3 4
|
||||
1 4 3
|
||||
1 4 4
|
||||
2 2 3
|
||||
2 2 4
|
||||
2 3 3
|
||||
2 3 4
|
||||
2 4 3
|
||||
2 4 4
|
||||
3 2 3
|
||||
3 2 4
|
||||
3 3 3
|
||||
3 3 4
|
||||
3 4 3
|
||||
3 4 4
|
||||
4 2 3
|
||||
4 2 4
|
||||
4 3 3
|
||||
4 3 4
|
||||
4 4 3
|
||||
4 4 4
|
||||
### Test -E one empty
|
||||
1 2
|
||||
2 2
|
||||
### Test -E 2 empty
|
||||
1
|
||||
2
|
||||
### Test -E all empty
|
||||
|
|
Loading…
Reference in a new issue