Linux FTP and "Put"
I am trying to upload a text file by running a batch file that moves a file from my system to an as/400 server. The problem I am having is the batch file needs to execute everyday but the file being uploaded changes everyday. My program that I developed writes a text file where the first line is the name of the file to be uploaded. This file will change as the date changes. Ex.
ccf0_0711070138.csv - Day one
ccf0_0712070138.csv - Day two
I need a command that can read this text file(which will only contain the one line -the filename) and use this name for the "put" command.
i believe it is --- put <variable> <variable>
So the <variable> areas will change from day to day based on what gets written to that text file. If you could help me that would be great.
More or less i need a command that can read the text file and input that text into a command.
Last edited by dburesh; 07-24-2007 at 12:55 PM.