Article 5FCF3 Please help with this basic scripts... it's not working.

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.latest?d=yIl2AUoC8zA latest?i=2fphHvqrG88:6Jm5tikXzaQ:F7zBnMy latest?i=2fphHvqrG88:6Jm5tikXzaQ:V_sGLiP latest?d=qj6IDK7rITs latest?i=2fphHvqrG88:6Jm5tikXzaQ:gIN9vFw2fphHvqrG88
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments