Hi
I want to install java on many computers using ssh so I want to write a bash script that will do (roughly):
for c in computers
do
scp jre--.rpm $c
ssh $c 'sudu -s; chmod a+x jre--.rpm ; ./jre--.rpm; echo "success!"'
done
The problem is that during the java installation I need to "read" the notice and type "yes" at the end. How do I do it? Is there an easier way than "expect"? And if not how to I fit it in the bash script?
thanks a lot