parallel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to do this in parallel


From: Ole Tange
Subject: Re: how to do this in parallel
Date: Tue, 26 Apr 2011 00:26:28 +0200

See also: http://lists.gnu.org/archive/html/parallel/2011-01/msg00011.html

/Ole

On Mon, Apr 25, 2011 at 7:38 PM, Jay Hacker <jayqhacker@gmail.com> wrote:
> 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 <magawake@gmail.com> 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

[Prev in Thread] Current Thread [Next in Thread]