On Jul 12, 2007, at 10:44 AM, Michael MacIsaac wrote:
Hello list, Does anyone have a simple wrapper around SSH to run the same command on multiple Linuxes?
Well, it's pretty much just a for loop: for $i in $hosts; do ssh $i $cmd done Except that you *do* have to be careful about quoting your arguments, and about making sure your cwd is the same on all hosts (and what to do if it doesn't exist, and about making sure that your shell environment is the same...at least if you want it to be a general- purpose tool. Adam ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
