in reply to Re: Multex - A Script For (Ex)ecuting The Same Command Across (Mult)iple Hosts
in thread Multex - A Script For (Ex)ecuting The Same Command Across (Mult)iple Hosts


1) The script is in use among several machines that my co-worker and I administer on a private network, so, we're not too concerned about that angle. That being said, there's no reason why this script's use needs to be root-only. It's not like normal users cant rsh. You're free to edit to your hearts desire, of course.

2) Pulling the output into a single array allows us a simple way to dump the contents into a separate report, which is what the foreach inside of execRoutine() was used for, originally...something I omitted from the code you're looking at.

3) For our uses, we preferred the results to come back sequentially--The decision not to fork off the rsh calls was an intentional one. Besides, with the limited number of boxes we're adressing, we don't gain much in speed by forking anyway.

  • Comment on Re^2: Multex - A Script For (Ex)ecuting The Same Command Across (Mult)iple Hosts

Replies are listed 'Best First'.
Re^3: Multex - A Script For (Ex)ecuting The Same Command Across (Mult)iple Hosts
by jfroebe (Parson) on Jun 16, 2005 at 18:22 UTC

    Hi,

    Personally, I would avoid the entire rsh/rlogin/etc suite and use ssh (or similar). Other than that, I can see an issue with the script that don't appear to be an issue in your environment:

    • The script contacts servers A, B and C.
    • Server A completes the task, but server B doesn't respond... then Server C may not complete the task in the 'time window' if at all.
    • It would probably be better to spawn off the tasks to each individual server then display the output sequentially when the tasks are completed. That way the time is dramatically decreased.
    • This is assuming that B & C do not rely on the output of A.

    You deserve the ++ I gave ya though :)

    Jason L. Froebe

    Team Sybase member

    No one has seen what you have seen, and until that happens, we're all going to think that you're nuts. - Jack O'Neil, Stargate SG-1

      Hi Jason, We actually did move Multex away from rsh to ssh recently. It's much slower, but that's the price you pay, I guess.