parallel: --joblog for --(n)onall

This commit is contained in:
Ole Tange 2012-05-22 00:25:29 +02:00
parent 76c477d94d
commit f0540d5c23
2 changed files with 2 additions and 1 deletions

View file

@ -115,6 +115,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_joblog) ? "--joblog $::opt_joblog" : ""),
((defined $::opt_colsep) ? "--colsep ".shell_quote($::opt_colsep) : ""), ((defined $::opt_colsep) ? "--colsep ".shell_quote($::opt_colsep) : ""),
((defined @::opt_v) ? "-vv" : ""), ((defined @::opt_v) ? "-vv" : ""),
((defined $::opt_D) ? "-D" : ""), ((defined $::opt_D) ? "-D" : ""),

View file

@ -148,7 +148,7 @@ Wait for all commands to complete.
Run one gzip process per CPU core. Block until a CPU core becomes Run one gzip process per CPU core. Block until a CPU core becomes
available. available.
for i in `ls *.log` ; do for i in *.log ; do
echo $i echo $i
sem -j+0 gzip $i ";" echo done sem -j+0 gzip $i ";" echo done
done done