SampleScripts
: do
File do,
149 bytes
(added by hervey,
9 years ago
)
Execute a command on each PC in the classroom
Line
1
#!/bin/bash
2
#
3
for
i in
`
cat pcs
`
4
do
5
echo
"$i"
6
echo
"------"
7
#ssh "root@$i" $2 $3 $4 $5 $6 $7 $8 $9
8
ssh -c blowfish
"root@$i"
$*
9
done