@grissess batch scripts for the ITL
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

8 lines
399 B

#!/bin/bash
# I wrote this script to download files to an ITL machine.
for host in $(cat good_hosts); do
user="${opt_user:-$1}"
ssh "${user}@${host}" -p 22 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o PubkeyAuthentication=yes -o PasswordAuthentication=no -o ConnectTimeout=1 -n "cd /tmp; wget http://mirror.clarkson.edu/ignitecs/RAID-lab.7z; chown csguest: RAID-lab.7z" &
done