#!/bin/sh # # xfr_2_hl # # Usage: xfr_2_hl # # This script will transfer all scripts in INDEX # to all HL 50/51 stations. # # By: Angel Corbera # cd /opt/ac rm utils.ftp > /dev/null 2>&1 touch utils.ftp # # Creating temporary file utils.ftp from INDEX # echo "user root xxxxxx" >> utils.ftp echo "ascii" >> utils.ftp echo "cd /opt/ac" >> utils.ftp files=`awk '{print $1}' INDEX` for y in $files do echo "put $y" >> utils.ftp done echo "bye" >> utils.ftp # for x in AW01 WP01 WP02 WP03 WP04 WP05 WP06 do echo "Transferring UTILITIES to HL$x" ftp -n HL$x < utils.ftp echo "Done!\n" done # echo "Done!\n"