mirror of
https://git.savannah.gnu.org/git/parallel.git
synced 2024-11-25 23:47:53 +00:00
bug #35427: quoting of {2} broken for --onall.
bug #35803: sentence structure / wrong spelling in manpage.
This commit is contained in:
parent
f3223d7bbd
commit
f08db40a33
|
@ -116,6 +116,7 @@ if($::opt_nonall or $::opt_onall) {
|
||||||
join(" ",
|
join(" ",
|
||||||
((defined $::opt_u) ? "-u" : ""),
|
((defined $::opt_u) ? "-u" : ""),
|
||||||
((defined $::opt_group) ? "-g" : ""),
|
((defined $::opt_group) ? "-g" : ""),
|
||||||
|
((defined $::opt_colsep) ? "--colsep ".shell_quote($::opt_colsep) : ""),
|
||||||
((defined @::opt_v) ? "-vv" : ""),
|
((defined @::opt_v) ? "-vv" : ""),
|
||||||
((defined $::opt_D) ? "-D" : ""),
|
((defined $::opt_D) ? "-D" : ""),
|
||||||
((defined $::opt_timeout) ? "--timeout ".$::opt_timeout : ""),
|
((defined $::opt_timeout) ? "--timeout ".$::opt_timeout : ""),
|
||||||
|
|
|
@ -20,7 +20,7 @@ B<#!/usr/bin/parallel> --shebang [options] [I<command> [arguments]]
|
||||||
=head1 DESCRIPTION
|
=head1 DESCRIPTION
|
||||||
|
|
||||||
GNU B<parallel> is a shell tool for executing jobs in parallel using
|
GNU B<parallel> is a shell tool for executing jobs in parallel using
|
||||||
one or more computers. A job is can be a single command or a small
|
one or more computers. A job can be a single command or a small
|
||||||
script that has to be run for each of the lines in the input. The
|
script that has to be run for each of the lines in the input. The
|
||||||
typical input is a list of files, a list of hosts, a list of users, a
|
typical input is a list of files, a list of hosts, a list of users, a
|
||||||
list of URLs, or a list of tables. A job can also be a command that
|
list of URLs, or a list of tables. A job can also be a command that
|
||||||
|
@ -527,7 +527,7 @@ use B<-I> instead.
|
||||||
|
|
||||||
=item B<--joblog> I<logfile>
|
=item B<--joblog> I<logfile>
|
||||||
|
|
||||||
Logfile for executed jobs. Saved a list of the executed jobs to
|
Logfile for executed jobs. Save a list of the executed jobs to
|
||||||
I<logfile> in the following TAB separated format: sequence number,
|
I<logfile> in the following TAB separated format: sequence number,
|
||||||
sshlogin, start time as seconds since epoch, run time in seconds,
|
sshlogin, start time as seconds since epoch, run time in seconds,
|
||||||
bytes in files transfered, bytes in files returned, exit status,
|
bytes in files transfered, bytes in files returned, exit status,
|
||||||
|
@ -827,7 +827,7 @@ important.
|
||||||
|
|
||||||
=item B<--max-line-length-allowed>
|
=item B<--max-line-length-allowed>
|
||||||
|
|
||||||
Print the maximal number characters allowed on the command line and
|
Print the maximal number of characters allowed on the command line and
|
||||||
exit (used by GNU B<parallel> itself to determine the line length
|
exit (used by GNU B<parallel> itself to determine the line length
|
||||||
on remote computers).
|
on remote computers).
|
||||||
|
|
||||||
|
@ -3138,15 +3138,15 @@ echo 1,2,3 | parallel -vkd, "echo 'a'"{}"'b'"
|
||||||
=head3 Startup
|
=head3 Startup
|
||||||
|
|
||||||
GNU B<parallel> is slow at starting up - around 250 ms. Half of the
|
GNU B<parallel> is slow at starting up - around 250 ms. Half of the
|
||||||
startup time on the local computer is spent finding the maximal length
|
startup time is spent finding the maximal length of a command
|
||||||
of a command line. Setting B<-s> will remove this part of the startup
|
line. Setting B<-s> will remove this part of the startup time.
|
||||||
time.
|
|
||||||
|
|
||||||
=head3 Job startup
|
=head3 Job startup
|
||||||
|
|
||||||
Starting a job takes around 3 ms. This can be a big overhead if the
|
Starting a job on the local machine takes around 3 ms. This can be a
|
||||||
job takes very few ms to run. Often you can group small jobs together
|
big overhead if the job takes very few ms to run. Often you can group
|
||||||
using B<-X> which will make the overhead less significant.
|
small jobs together using B<-X> which will make the overhead less
|
||||||
|
significant.
|
||||||
|
|
||||||
Using B<--ungroup> the 3 ms can be lowered to around 2 ms.
|
Using B<--ungroup> the 3 ms can be lowered to around 2 ms.
|
||||||
|
|
||||||
|
@ -3158,6 +3158,10 @@ simultaneously (Namely SSHD's MaxStartup). This test is done for each
|
||||||
host in serial, so if your B<--sshloginfile> contains many hosts it may
|
host in serial, so if your B<--sshloginfile> contains many hosts it may
|
||||||
be slow.
|
be slow.
|
||||||
|
|
||||||
|
If your jobs are short you may see that there are fewer jobs running
|
||||||
|
on the remove systems than expected. This is due to time spent logging
|
||||||
|
in and out. B<-M> may help here.
|
||||||
|
|
||||||
=head3 Disk access
|
=head3 Disk access
|
||||||
|
|
||||||
A single disk can normally read data faster if it reads one file at a
|
A single disk can normally read data faster if it reads one file at a
|
||||||
|
@ -3199,10 +3203,10 @@ or:
|
||||||
B<open3: exec of by I<command> failed>
|
B<open3: exec of by I<command> failed>
|
||||||
|
|
||||||
it may be because I<command> is not known, but it could also be
|
it may be because I<command> is not known, but it could also be
|
||||||
because I<command> is an alias or a function. GNU B<parallel> will
|
because I<command> is an alias or a function. If it is a function you
|
||||||
never support running aliases and functions (see why
|
need to B<export -f> the function first. An alias will, however, not
|
||||||
http://www.perlmonks.org/index.pl?node_id=484296), so change your
|
work (see why http://www.perlmonks.org/index.pl?node_id=484296), so
|
||||||
alias or function to a script.
|
change your alias to a script.
|
||||||
|
|
||||||
|
|
||||||
=head1 REPORTING BUGS
|
=head1 REPORTING BUGS
|
||||||
|
@ -3224,14 +3228,16 @@ fixed in that version.
|
||||||
|
|
||||||
A complete example that others can run that shows the problem. A
|
A complete example that others can run that shows the problem. A
|
||||||
combination of B<seq>, B<cat>, B<echo>, and B<sleep> can reproduce
|
combination of B<seq>, B<cat>, B<echo>, and B<sleep> can reproduce
|
||||||
most errors. If you example requires large files, see if you can use
|
most errors. If your example requires large files, see if you can make
|
||||||
make them by something like B<seq 1000000>>B<file>.
|
them by something like B<seq 1000000>>B<file>.
|
||||||
|
|
||||||
=back
|
=back
|
||||||
|
|
||||||
If you suspect the error is dependent on your distribution, please see
|
If you suspect the error is dependent on your distribution, please see
|
||||||
if you can reproduce the error on one of these distibutions:
|
if you can reproduce the error on one of these VirtualBox images:
|
||||||
http://sourceforge.net/projects/virtualboximage/files/
|
http://sourceforge.net/projects/virtualboximage/files/ Specifying the
|
||||||
|
name of your distribution is not enough as you may have installed
|
||||||
|
software that is not the the VirtualBox images.
|
||||||
|
|
||||||
|
|
||||||
=head1 AUTHOR
|
=head1 AUTHOR
|
||||||
|
|
|
@ -29,7 +29,7 @@ parallel - build and execute shell command lines from standard input in parallel
|
||||||
@anchor{DESCRIPTION}
|
@anchor{DESCRIPTION}
|
||||||
|
|
||||||
GNU @strong{parallel} is a shell tool for executing jobs in parallel using
|
GNU @strong{parallel} is a shell tool for executing jobs in parallel using
|
||||||
one or more computers. A job is can be a single command or a small
|
one or more computers. A job can be a single command or a small
|
||||||
script that has to be run for each of the lines in the input. The
|
script that has to be run for each of the lines in the input. The
|
||||||
typical input is a list of files, a list of hosts, a list of users, a
|
typical input is a list of files, a list of hosts, a list of users, a
|
||||||
list of URLs, or a list of tables. A job can also be a command that
|
list of URLs, or a list of tables. A job can also be a command that
|
||||||
|
@ -560,7 +560,7 @@ use @strong{-I} instead.
|
||||||
@item @strong{--joblog} @emph{logfile}
|
@item @strong{--joblog} @emph{logfile}
|
||||||
@anchor{@strong{--joblog} @emph{logfile}}
|
@anchor{@strong{--joblog} @emph{logfile}}
|
||||||
|
|
||||||
Logfile for executed jobs. Saved a list of the executed jobs to
|
Logfile for executed jobs. Save a list of the executed jobs to
|
||||||
@emph{logfile} in the following TAB separated format: sequence number,
|
@emph{logfile} in the following TAB separated format: sequence number,
|
||||||
sshlogin, start time as seconds since epoch, run time in seconds,
|
sshlogin, start time as seconds since epoch, run time in seconds,
|
||||||
bytes in files transfered, bytes in files returned, exit status,
|
bytes in files transfered, bytes in files returned, exit status,
|
||||||
|
@ -886,7 +886,7 @@ important.
|
||||||
@item @strong{--max-line-length-allowed}
|
@item @strong{--max-line-length-allowed}
|
||||||
@anchor{@strong{--max-line-length-allowed}}
|
@anchor{@strong{--max-line-length-allowed}}
|
||||||
|
|
||||||
Print the maximal number characters allowed on the command line and
|
Print the maximal number of characters allowed on the command line and
|
||||||
exit (used by GNU @strong{parallel} itself to determine the line length
|
exit (used by GNU @strong{parallel} itself to determine the line length
|
||||||
on remote computers).
|
on remote computers).
|
||||||
|
|
||||||
|
@ -3344,16 +3344,16 @@ echo 1,2,3 | parallel -vkd, "echo 'a'"@{@}"'b'"
|
||||||
@anchor{Startup}
|
@anchor{Startup}
|
||||||
|
|
||||||
GNU @strong{parallel} is slow at starting up - around 250 ms. Half of the
|
GNU @strong{parallel} is slow at starting up - around 250 ms. Half of the
|
||||||
startup time on the local computer is spent finding the maximal length
|
startup time is spent finding the maximal length of a command
|
||||||
of a command line. Setting @strong{-s} will remove this part of the startup
|
line. Setting @strong{-s} will remove this part of the startup time.
|
||||||
time.
|
|
||||||
|
|
||||||
@subsection Job startup
|
@subsection Job startup
|
||||||
@anchor{Job startup}
|
@anchor{Job startup}
|
||||||
|
|
||||||
Starting a job takes around 3 ms. This can be a big overhead if the
|
Starting a job on the local machine takes around 3 ms. This can be a
|
||||||
job takes very few ms to run. Often you can group small jobs together
|
big overhead if the job takes very few ms to run. Often you can group
|
||||||
using @strong{-X} which will make the overhead less significant.
|
small jobs together using @strong{-X} which will make the overhead less
|
||||||
|
significant.
|
||||||
|
|
||||||
Using @strong{--ungroup} the 3 ms can be lowered to around 2 ms.
|
Using @strong{--ungroup} the 3 ms can be lowered to around 2 ms.
|
||||||
|
|
||||||
|
@ -3366,6 +3366,10 @@ simultaneously (Namely SSHD's MaxStartup). This test is done for each
|
||||||
host in serial, so if your @strong{--sshloginfile} contains many hosts it may
|
host in serial, so if your @strong{--sshloginfile} contains many hosts it may
|
||||||
be slow.
|
be slow.
|
||||||
|
|
||||||
|
If your jobs are short you may see that there are fewer jobs running
|
||||||
|
on the remove systems than expected. This is due to time spent logging
|
||||||
|
in and out. @strong{-M} may help here.
|
||||||
|
|
||||||
@subsection Disk access
|
@subsection Disk access
|
||||||
@anchor{Disk access}
|
@anchor{Disk access}
|
||||||
|
|
||||||
|
@ -3414,10 +3418,10 @@ or:
|
||||||
@strong{open3: exec of by @emph{command} failed}
|
@strong{open3: exec of by @emph{command} failed}
|
||||||
|
|
||||||
it may be because @emph{command} is not known, but it could also be
|
it may be because @emph{command} is not known, but it could also be
|
||||||
because @emph{command} is an alias or a function. GNU @strong{parallel} will
|
because @emph{command} is an alias or a function. If it is a function you
|
||||||
never support running aliases and functions (see why
|
need to @strong{export -f} the function first. An alias will, however, not
|
||||||
http://www.perlmonks.org/index.pl?node_id=484296), so change your
|
work (see why http://www.perlmonks.org/index.pl?node_id=484296), so
|
||||||
alias or function to a script.
|
change your alias to a script.
|
||||||
|
|
||||||
@chapter REPORTING BUGS
|
@chapter REPORTING BUGS
|
||||||
@anchor{REPORTING BUGS}
|
@anchor{REPORTING BUGS}
|
||||||
|
@ -3434,14 +3438,16 @@ fixed in that version.
|
||||||
|
|
||||||
@item A complete example that others can run that shows the problem. A
|
@item A complete example that others can run that shows the problem. A
|
||||||
combination of @strong{seq}, @strong{cat}, @strong{echo}, and @strong{sleep} can reproduce
|
combination of @strong{seq}, @strong{cat}, @strong{echo}, and @strong{sleep} can reproduce
|
||||||
most errors. If you example requires large files, see if you can use
|
most errors. If your example requires large files, see if you can make
|
||||||
make them by something like @strong{seq 1000000}>@strong{file}.
|
them by something like @strong{seq 1000000}>@strong{file}.
|
||||||
|
|
||||||
@end itemize
|
@end itemize
|
||||||
|
|
||||||
If you suspect the error is dependent on your distribution, please see
|
If you suspect the error is dependent on your distribution, please see
|
||||||
if you can reproduce the error on one of these distibutions:
|
if you can reproduce the error on one of these VirtualBox images:
|
||||||
http://sourceforge.net/projects/virtualboximage/files/
|
http://sourceforge.net/projects/virtualboximage/files/ Specifying the
|
||||||
|
name of your distribution is not enough as you may have installed
|
||||||
|
software that is not the the VirtualBox images.
|
||||||
|
|
||||||
@chapter AUTHOR
|
@chapter AUTHOR
|
||||||
@anchor{AUTHOR}
|
@anchor{AUTHOR}
|
||||||
|
|
|
@ -53,5 +53,3 @@ seq 1 11 | parallel -k -j10000% -S "ssh $SSHLOGIN1" echo
|
||||||
|
|
||||||
echo '### Check -S syntax'
|
echo '### Check -S syntax'
|
||||||
seq 1 11 | parallel -k -j100% -S "/:" echo
|
seq 1 11 | parallel -k -j100% -S "/:" echo
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -19,3 +19,6 @@ echo '### Test --return with fixed string (Gave undef warnings)'
|
||||||
touch a
|
touch a
|
||||||
echo a | stdout parallel --return b -S .. echo ">b" && echo OK
|
echo a | stdout parallel --return b -S .. echo ">b" && echo OK
|
||||||
rm a b
|
rm a b
|
||||||
|
|
||||||
|
echo '### bug #35427: quoting of {2} broken for --onall'
|
||||||
|
echo foo: /bin/ls | parallel --colsep ' ' -S localhost --onall ls {2}
|
||||||
|
|
|
@ -4,3 +4,5 @@ original
|
||||||
original
|
original
|
||||||
### Test --return with fixed string (Gave undef warnings)
|
### Test --return with fixed string (Gave undef warnings)
|
||||||
OK
|
OK
|
||||||
|
### bug #35427: quoting of {2} broken for --onall
|
||||||
|
/bin/ls
|
||||||
|
|
Loading…
Reference in a new issue