#!/bin/sh # # Mega simple wrapper for batch control on nodes. # # Rick van der Zwet # HOSTS=${*:-`cd $(dirname $0)/../nodes; echo CNode* proxy*`} PREFIX=${PREFIX:-'ip'} CMD=${CMD:-'ifconfig -a'} echo "# WARN: Going to run at $HOSTS"; sleep 2 for HOST in $HOSTS; do ssh -o ConnectTimeout=3 -o BatchMode=yes root@$HOST.wleiden.net. $CMD > $PREFIX-$HOST.txt & done # Wait for all processes to complete. wait