marksmithy69
Programmer
I am a DOS batch file newbie, so I'm not really sure how to go about getting
this done. I currently have a batch script which currently ftp's to a
remote UNIX server, and ftp's a group of files back to our local Windows
2000 server. This works fine for the one UNIX server it was designed for.
We now have a request to get the script working for 40 different servers.
The script uses 3 variables, UNIX_SERVER, DB_SID and DROPBOX. The script
ftp's to the UNIX_SERVER, cd's to DB_SID\DROPBOX and ftp's the files back to
the local server. Is it possible for me to create a feeder file containing
all 40 groups of variables, such as:
SET UNIX_SERVER=server1
SET DB_SID=sid1
SET DROPBOX=dropbox1
SET UNIX_SERVER=server2
SET DB_SID=sid2
SET DROPBOX=dropbox2
SET UNIX_SERVER=server3
SET DB_SID=sid3
SET DROPBOX=dropbox3
.
.
.
and loop through each variable set? I want to cron this to run every 10
minutes...looping through the 40 different servers and ftp'ing the files
back to the local server. I appreciate any help. Thanks a lot.
this done. I currently have a batch script which currently ftp's to a
remote UNIX server, and ftp's a group of files back to our local Windows
2000 server. This works fine for the one UNIX server it was designed for.
We now have a request to get the script working for 40 different servers.
The script uses 3 variables, UNIX_SERVER, DB_SID and DROPBOX. The script
ftp's to the UNIX_SERVER, cd's to DB_SID\DROPBOX and ftp's the files back to
the local server. Is it possible for me to create a feeder file containing
all 40 groups of variables, such as:
SET UNIX_SERVER=server1
SET DB_SID=sid1
SET DROPBOX=dropbox1
SET UNIX_SERVER=server2
SET DB_SID=sid2
SET DROPBOX=dropbox2
SET UNIX_SERVER=server3
SET DB_SID=sid3
SET DROPBOX=dropbox3
.
.
.
and loop through each variable set? I want to cron this to run every 10
minutes...looping through the 40 different servers and ftp'ing the files
back to the local server. I appreciate any help. Thanks a lot.