For running the exact same command(s) on a bunch of machines, you
might want to look into a tool like func or Cluster SSH.  Parallel is
more for "I have a bunch of jobs and I don't really care where they
run."

That said, it's certainly possible, with something like:

$ parallel -q -j0 ssh {} 'echo {}; parallel md5sum < files.txt' < hosts.txt

This assumes files.txt (and parallel) is on all the hosts.



On Sat, Apr 23, 2011 at 4:43 PM, Mag Gam <[email protected]> wrote:
> I have 2 files and I want to do something like this with parallel.
>
> fileA
> /var/log/httpd.log
> /var/log/mapd.log
> /var/log/mysqld.log
> /var/log/postgresql.log
>
> fileB
> host1
> host2
> host3
> host4
>
> I would like to run, 'md5sum' with `cat fileA` on all these hosts `cat fileB`.
>
> Any ideas?
>
>

Reply via email to