InstallScripts: push

File push, 217 bytes (added by admin, 9 years ago)

Push file(s) out to remote machines

Line 
1#!/bin/bash
2#
3# ./push filename remote-location
4#
5# If you forget remote-location will default to /root
6# on remote machine
7#
8for i in `cat pcs`
9do
10    echo "$i"
11    echo "------"
12        scp -c blowfish $1 root@$i:$2
13done