parallel
[Top][All Lists]
Advanced

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

Re: Dynamically changing remote servers list


From: Douglas A. Augusto
Subject: Re: Dynamically changing remote servers list
Date: Sun, 17 Aug 2014 18:10:07 -0300
User-agent: Mutt/1.5.23 (2014-03-12)

On 17/08/2014 at 12:29,
Ole Tange <ole@tange.dk> wrote:

> So you are basically suggesting a daemon that keeps the slf updated.
> 
> Daemon:
> 
> forever {
>   nice parallel --nonall -j0 -k --slf original.slf --tag echo | remove
> final tab > tmp.slf
>   if diff tmp.slf original.slf:
>     mv tmp.slf tmp2.slf
>   sleep 10
> }

Hi,

Having an independent process/thread updating the servers list is exactly the
idea (but it would be able to handle more complex server entries like '8/ssh -p
2222 host.net' too).

However, as others pointed out, perhaps that daemon should not be part of GNU
Parallel's main code. It should suffice to have the ability to change the
server list at runtime. Then, the users could run whatever they want to update
the list. An additional benefit of this approach is that the user has more
flexibility/control regarding the updating method (maybe he or she prefers a
serial script or that certain servers be checked more frequently than others).

-- 
Douglas A. Augusto



reply via email to

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