From 8f9038909aa1cecb98f459683eac28149e968625 Mon Sep 17 00:00:00 2001 From: Ole Tange Date: Mon, 23 Aug 2010 13:33:55 +0200 Subject: [PATCH] Bugfix: make -j2 fails because 'rm pod2htm*' fails. --- src/Makefile.am | 4 ++-- src/parallel | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/Makefile.am b/src/Makefile.am index acdc0f14..4a03ffe3 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -12,11 +12,11 @@ sem.1: sem.pod Makefile parallel.html: parallel Makefile pod2html $(srcdir)/parallel > $(srcdir)/parallel.html - rm $(srcdir)/pod2htm* + rm -f $(srcdir)/pod2htm* sem.html: sem.pod Makefile pod2html $(srcdir)/sem.pod > $(srcdir)/sem.html - rm $(srcdir)/pod2htm* + rm -f $(srcdir)/pod2htm* sem: parallel ln -s parallel sem diff --git a/src/parallel b/src/parallel index 86e71584..da7df834 100755 --- a/src/parallel +++ b/src/parallel @@ -1234,6 +1234,11 @@ With the file I containing the list of computers it becomes: find logs/ -name '*.gz' | parallel --sshloginfile mycomputers \ --trc {.}.bz2 "zcat {} | bzip2 -9 >{.}.bz2" +If the file I<~/.parallel/sshloginfile> contains the list of computers +the special short hand I<-S ..> can be used: + + find logs/ -name '*.gz' | parallel -S .. \ + --trc {.}.bz2 "zcat {} | bzip2 -9 >{.}.bz2" =head1 EXAMPLE: Distributing work to local and remote computers