niceload: --verbose output to STDERR.

This commit is contained in:
Ole Tange 2014-03-21 22:39:54 +01:00
parent 040586e172
commit a3f11158b5
6 changed files with 44 additions and 58 deletions

View file

@ -193,7 +193,6 @@ from:tange@gnu.org
to:parallel@gnu.org, bug-parallel@gnu.org
cc:Sandro Cazzaniga <kharec@mandriva.org>,
Tim Cuthbertson <tim3d.junk@gmail.com>,
Steven M. Christensen <sunfreeware@gmail.com>,
Ludovic Courtès <ludo@gnu.org>, Markus Ammer <mkmm@gmx-topmail.de>,
Pavel Nuzhdin <pnzhdin@gmail.com>, Phil Sung <psung@alum.mit.edu>,
Michael Shigorin <mike@altlinux.org>,
@ -207,13 +206,22 @@ cc:Sandro Cazzaniga <kharec@mandriva.org>,
Ryoichiro Suzuki <ryoichiro.suzuki@gmail.com>,
Jesse Alama <jesse.alama@gmail.com>
Subject: GNU Parallel 20140322 ('昆明 Kunming') released
GNU Parallel 20140322 ('昆明 Kunming') has been released. It is available for download at: http://ftp.gnu.org/gnu/parallel/
Subject: GNU Parallel 20140322 ('昆明 MH370') released
GNU Parallel 20140322 ('昆明 MH370') has been released. It is available for download at: http://ftp.gnu.org/gnu/parallel/
New in this release:
* Offical package for Alpine Linux now exists: http://alpinelinux.org/apk/main/x86/parallel
* GNU Parallel was cited in: Estimating uncertainties in statistics computed from direct numerical simulation http://dx.doi.org/10.1063/1.4866813
* GNU Parallel was cited in: Vehicle routing problems with time windows and multiple service workers: a systematic comparison between ACO and GRASP http://link.springer.com/article/10.1007/s10100-014-0341-z
* GNU Parallel, quick and easy http://www.reganmian.net/blog/2014/03/09/gnu-parallel-quick-and-easy/
* Using Multiple CPU Cores With Command Line Tools http://prateekvjoshi.com/2014/03/07/using-multiple-cpu-cores-with-command-line-tools/
* Batch convert mp3 CBR to VBR http://blogs.zercle.com/bouroo/2013/03/batch-convert-mp3-cbr-to-vbr/
* Running Behat in parallel with Selenium grid http://zalas.eu/running-behat-in-parallel-with-selenium-grid/
@ -222,6 +230,8 @@ New in this release:
* Пишем многопоточный скрипт на bash http://dafter.ru/duf/howto/130.html
* 如何利用多核CPU来加速你的Linux命令 http://www.chinadmd.com/file/xpcr6wpctzwtuu3ivwiaatcs_1.html
* Bug fixes and man page updates.

View file

@ -603,7 +603,7 @@ sub sleep_for_recheck {
}
if($self->verbose()) {
$self->{'recheck'} = int($self->{'recheck'}*100)/100;
print "Sleeping $self->{'recheck'}s\n";
print STDERR "Sleeping $self->{'recheck'}s\n";
}
::debug("recheck in $self->{'recheck'}s\n");
::usleep(1); # For some reason this gets interrupted
@ -616,7 +616,7 @@ sub sleep_while_running {
::debug("check in $self->{'runtime'}s\n");
if($self->verbose()) {
$self->{'runtime'} = int($self->{'runtime'}*100)/100;
print "Running $self->{'runtime'}s\n";
print STDERR "Running $self->{'runtime'}s\n";
}
::usleep(1); # For some reason this gets interrupted
::usleep(1000*$self->{'runtime'});

Binary file not shown.

View file

@ -540,7 +540,8 @@ infinite loop. This will likely be fixed in a later release.
=item B<--gnu>
Behave like GNU B<parallel>. If B<--tollef> and B<--gnu> are both set,
B<--gnu> takes precedence.
B<--gnu> takes precedence. B<--tollef> is retired, but B<--gnu> is
kept for compatibility.
=item B<--group>
@ -877,9 +878,9 @@ B<--files> is often used with B<--pipe>.
=item B<--plain>
Ignore any B<--profile>, $PARALLEL, ~/.parallel/config, and
B<--tollef> to get full control on the command line (used by GNU
B<parallel> internally when called with B<--sshlogin>).
Ignore any B<--profile>, $PARALLEL, and ~/.parallel/config to get full
control on the command line (used by GNU B<parallel> internally when
called with B<--sshlogin>).
=item B<--progress>
@ -1473,19 +1474,6 @@ computed as a percentage of the median average runtime. Only values
> 100% will make sense.
=item B<--tollef> (obsolete - will be retired 20140222)
Make GNU B<parallel> behave more like Tollef's parallel command. It
activates B<-u>, B<-q>, and B<--arg-sep -->. It also causes B<-l> to
change meaning to B<--load>.
Not giving '--' is unsupported.
B<Do not use --tollef unless you know what you are doing>.
To override use B<--gnu>.
=item B<--verbose>
=item B<-t>
@ -3109,7 +3097,7 @@ this. To see this in action try:
parallel -kP4 -n1 grep 1 > out.par ::: a b c d e f
echo a b c d e f | xargs -P4 -n1 grep 1 > out.xargs-unbuf
echo a b c d e f | xargs -P4 -n1 grep --line-buffered 1 > out.xargs-linebuf
echo a b c d e f | xargs -n1 grep --line-buffered 1 > out.xargs-serial
echo a b c d e f | xargs -n1 grep 1 > out.xargs-serial
ls -l out*
md5sum out*

View file

@ -565,10 +565,11 @@ $PARALLEL, /etc/parallel/config or similar. This is because GNU
infinite loop. This will likely be fixed in a later release.
@item @strong{--gnu}
@anchor{@strong{--gnu}}
@anchor{@strong{--gnu} }
Behave like GNU @strong{parallel}. If @strong{--tollef} and @strong{--gnu} are both set,
@strong{--gnu} takes precedence.
@strong{--gnu} takes precedence. @strong{--tollef} is retired, but @strong{--gnu} is
kept for compatibility.
@item @strong{--group}
@anchor{@strong{--group}}
@ -933,9 +934,9 @@ defaults to '\n'. To have no record separator use @strong{--recend ""}.
@item @strong{--plain}
@anchor{@strong{--plain}}
Ignore any @strong{--profile}, $PARALLEL, ~/.parallel/config, and
@strong{--tollef} to get full control on the command line (used by GNU
@strong{parallel} internally when called with @strong{--sshlogin}).
Ignore any @strong{--profile}, $PARALLEL, and ~/.parallel/config to get full
control on the command line (used by GNU @strong{parallel} internally when
called with @strong{--sshlogin}).
@item @strong{--progress}
@anchor{@strong{--progress}}
@ -1576,19 +1577,6 @@ If @emph{val} is followed by a % then the timeout will dynamically be
computed as a percentage of the median average runtime. Only values
> 100% will make sense.
@item @strong{--tollef} (obsolete - will be retired 20140222)
@anchor{@strong{--tollef} (obsolete - will be retired 20140222)}
Make GNU @strong{parallel} behave more like Tollef's parallel command. It
activates @strong{-u}, @strong{-q}, and @strong{--arg-sep --}. It also causes @strong{-l} to
change meaning to @strong{--load}.
Not giving '--' is unsupported.
@strong{Do not use --tollef unless you know what you are doing}.
To override use @strong{--gnu}.
@item @strong{--verbose}
@anchor{@strong{--verbose}}