Hi there, I have a .dat file with the names of files in it like so:
/opt/cti/GCTI65/logsArchive/log_ivr_tserver/TServer_IVR.092104_094139_373.log.gz
/opt/cti/GCTI65/logsArchive/log_ivr_tserver/TServer_IVR.092104_094024_492.log.gz
/opt/cti/GCTI65/logsArchive/log_ivr_tserver/TServer_IVR.092104_093921_789.log.gz
/opt/cti/GCTI65/logsArchive/log_ivr_tserver/TServer_IVR.092104_093816_381.log.gz
/opt/cti/GCTI65/logsArchive/log_ivr_tserver/TServer_IVR.092104_093719_987.log.gz
/opt/cti/GCTI65/logsArchive/log_ivr_tserver/TServer_IVR.092104_093625_797.log.gz
/opt/cti/GCTI65/logsArchive/log_ivr_tserver/TServer_IVR.092104_093458_908.log.gz
/opt/cti/GCTI65/logsArchive/log_ivr_tserver/TServer_IVR.092104_093235_591.log.gz
/opt/cti/GCTI65/logsArchive/log_ivr_tserver/TServer_IVR.092104_093051_606.log.gz
/opt/cti/GCTI65/logsArchive/log_ivr_tserver/TServer_IVR.092104_092831_946.log.gz
/opt/cti/GCTI65/logsArchive/log_ivr_tserver/TServer_IVR.092104_092652_752.log.gz
/opt/cti/GCTI65/logsArchive/log_ivr_tserver/TServer_IVR.092104_092523_235.log.gz
/opt/cti/GCTI65/logsArchive/log_ivr_tserver/TServer_IVR.092104_092415_005.log.gz
/opt/cti/GCTI65/logsArchive/log_ivr_tserver/TServer_IVR.092104_092308_593.log.gz
/opt/cti/GCTI65/logsArchive/log_ivr_tserver/TServer_IVR.092104_092202_356.log.gz
/opt/cti/GCTI65/logsArchive/log_ivr_tserver/TServer_IVR.092104_092055_057.log.gz
/opt/cti/GCTI65/logsArchive/log_ivr_tserver/TServer_IVR.092104_091927_262.log.gz
/opt/cti/GCTI65/logsArchive/log_ivr_tserver/TServer_IVR.092104_091812_526.log.gz
What I need to do is FTP each one of those files over to another box. I can't just FTP the whole dir those files are in because this is a select few that I need. What is the best way to do this? I was thinking of somehow reading the file line-by-line inside the FTP script but I have no idea how to do that.
Thanks!
/opt/cti/GCTI65/logsArchive/log_ivr_tserver/TServer_IVR.092104_094139_373.log.gz
/opt/cti/GCTI65/logsArchive/log_ivr_tserver/TServer_IVR.092104_094024_492.log.gz
/opt/cti/GCTI65/logsArchive/log_ivr_tserver/TServer_IVR.092104_093921_789.log.gz
/opt/cti/GCTI65/logsArchive/log_ivr_tserver/TServer_IVR.092104_093816_381.log.gz
/opt/cti/GCTI65/logsArchive/log_ivr_tserver/TServer_IVR.092104_093719_987.log.gz
/opt/cti/GCTI65/logsArchive/log_ivr_tserver/TServer_IVR.092104_093625_797.log.gz
/opt/cti/GCTI65/logsArchive/log_ivr_tserver/TServer_IVR.092104_093458_908.log.gz
/opt/cti/GCTI65/logsArchive/log_ivr_tserver/TServer_IVR.092104_093235_591.log.gz
/opt/cti/GCTI65/logsArchive/log_ivr_tserver/TServer_IVR.092104_093051_606.log.gz
/opt/cti/GCTI65/logsArchive/log_ivr_tserver/TServer_IVR.092104_092831_946.log.gz
/opt/cti/GCTI65/logsArchive/log_ivr_tserver/TServer_IVR.092104_092652_752.log.gz
/opt/cti/GCTI65/logsArchive/log_ivr_tserver/TServer_IVR.092104_092523_235.log.gz
/opt/cti/GCTI65/logsArchive/log_ivr_tserver/TServer_IVR.092104_092415_005.log.gz
/opt/cti/GCTI65/logsArchive/log_ivr_tserver/TServer_IVR.092104_092308_593.log.gz
/opt/cti/GCTI65/logsArchive/log_ivr_tserver/TServer_IVR.092104_092202_356.log.gz
/opt/cti/GCTI65/logsArchive/log_ivr_tserver/TServer_IVR.092104_092055_057.log.gz
/opt/cti/GCTI65/logsArchive/log_ivr_tserver/TServer_IVR.092104_091927_262.log.gz
/opt/cti/GCTI65/logsArchive/log_ivr_tserver/TServer_IVR.092104_091812_526.log.gz
What I need to do is FTP each one of those files over to another box. I can't just FTP the whole dir those files are in because this is a select few that I need. What is the best way to do this? I was thinking of somehow reading the file line-by-line inside the FTP script but I have no idea how to do that.
Thanks!