I've running this script, which deploys a directory to student machines:
> ... initialisation omitted
>
> while IFS=: read myname mynumber ; do
> destip="10.0.0.${mynumber}"
> scp -r $chapter ${destip}:/home/student
> #ssh $destip "chown -R student. /home/student"
> done < ips.txt
The scp works fine; copies all the stuff thru to all machines (I'm using
an ssh key for root). But when I uncomment the ssh line, only the first
machine is done, suggesting that ssh is dying somehow.
Any ideas on what I could try?
--
Sonia Hamilton. GPG key A8B77238.
.
The information revolution will be fought on the command line.
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html