Chang filename on remote Computer / FTP - TechRepublic
General discussion
January 31, 2001 at 10:10 AM
it1

Chang filename on remote Computer / FTP

by it1 . Updated 25 years, 4 months ago

We receive various files from clients through our Sun box running Solaris 7. They will either dial-in or use ftp. This is only a staging area, we then need to send these files to our HP3000 for processing. Our analysts would like to have these files named according to the current date, for example, ABC0131 the next one would be ABC0201. I’m doing this manually now, but would like to create a script that automatically changes the name during the ftp process. I wrote a script that will change the name on the Solaris box but I am stumped when it comes to using ftp to send them to the HP3000. In my script, I pick up the file with the modified name, and want to use that modified name on the remote, but I don’t know of a way to do that dynamcially. Is there a way to send these files over to a remote location, with ftp, that will automatically take into account file names that change names on a daily basis? Thanks

This discussion is locked

All Comments