Please help with this basic scripts... it's not working.
by sam_nyc from LinuxQuestions.org on (#5FCF3)
I am not getting error message but it doesn't work. It doesn't do anything. Thanks for your help.
Code:#!/bin/sh
AllHOST="/root/scripts/FILES/allhost.txt"
cd /root/scripts/FILES
for file in $ALLHOST
do
sftp root@$ALLHOST
put /root/scripts/FILES/services /etc/
put /root/scripts/FILES/sge* /etc/init.d/
doneI have the allhost.txt file with few of the hostname.


Code:#!/bin/sh
AllHOST="/root/scripts/FILES/allhost.txt"
cd /root/scripts/FILES
for file in $ALLHOST
do
sftp root@$ALLHOST
put /root/scripts/FILES/services /etc/
put /root/scripts/FILES/sge* /etc/init.d/
doneI have the allhost.txt file with few of the hostname.