Link to home
Start Free TrialLog in
Avatar of AIX25
AIX25Flag for United States of America

asked on

Help script a for loop

I have files that are in /data/reports/daily/* that I want to grab from a bunch of servers and ftp all to my master server to /daily/. Please help provide me a for loop to complete this task.
Avatar of parparov
parparov
Flag of United States of America image

can you use ssh / scp with public key authentication from you master servers to the bunch?
Avatar of AIX25

ASKER

I have ssh key setup between my master server to the all servers. The question was help to scripting a loop to go out to all servers from my master server using a host list and ftp/scp/sftp whichever one and bring them all back down to my master server.
ASKER CERTIFIED SOLUTION
Avatar of Tintin
Tintin

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial