SampleScripts
: push
File push,
217 bytes
(added by hervey,
9 years ago
)
Copy a file from the local machine to all the 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
#
8
for
i in
`
cat pcs
`
9
do
10
echo
"$i"
11
echo
"------"
12
scp -c blowfish
$1
root@
$i
:
$2
13
done