in reply to Push: A Perl script to distribute a file to several servers.

Been there done that, didn't buy the t-shirt, it wsa too expensive.

Toss in some Parallel::ForkManager in there and do the push in parallel.

Replace rsh with ssh, add some pub/priv keys, and then you can do that with security!

  • Comment on Re: Push: A Perl script to distribute a file to several servers.

Replies are listed 'Best First'.
Re^2: Push: A Perl script to distribute a file to several servers.
by bpoag (Monk) on Mar 04, 2005 at 22:10 UTC
    Hi cazz,

    Yeah -- Thought about both of those ideas, actually. I try to stick with tools that are ubiquitous across several platforms, which ruled out ssh. Forking the rsh/rcp stuff would have added alot of extra overhead, not to mention the need to install Parallel::ForkManager across the board. Between different Unicies and different versions of Perl, that can be a super pain.

    This script was also developed in-house, where all the machines are peered on a private subnet without a need for added security. :) Provided you dont have like 500 different hosts listed in the array, it's fine to do them sequentially, I figure. :)

    Cheers, Bowie