title: how to run a bash script using ssh and xargs across several hosts without the script being copied to each host?
body: <p>how to run a bash script using ssh and xargs across several hosts without the script being copied to each host ?</p>
  
  <p>This Works,<br>
  ssh host1.com bash -s &lt; ~/httpd-conf/weblogrotate.sh<br>
  <br>
  This Doesn't work,<br>
  cat webserver.hosts  | xargs -I % ssh % bash -s &lt; ~/httpd-conf/weblogrotate.sh<br>
  tcsh: Ambiguous input redirect.<br><br></p>
  
  <p>cat webserver.hosts<br>
  host1.com<br>
  host2.com<br>
  host3.com</p>