Newbie= Bash / expect Script Issues For Firmware Update Script

view story

http://ubuntuforums.org – I'm running Ubuntu 9.10 Karmic and am having issues writing a script to pass a password and a http link for the update file. I installed the following packages to add the expect command: expect_5.44.1.14-5_i386.deb tcl8.5_8.5.8-2_i386.deb My script looks like the following: # this script works to update Firmware # # command line format: # # sh rcatup [FILE1] # # where FILE1 is an input file containing a single list of hostnames # LOGIN=update PASSWORD=update UPDATE=http://xx.xx.xx.xx/update_file.txt date 2>&1 for i in `cat $1` do if ping $i -c 1 | grep -s "100% packet loss&q (Hardware)