08-06-2012 08:30 AM - edited 08-06-2012 08:47 AM
I have a script in queue that send log files from OpenVMS 8.3 to Linux Red hat server.
On Red Hat there is an application that expect the filename as XXXXXXX.DAT.gz (.gz must be in lower case).
This is part of the transfer script:
$ FTP 10.99.10.10 /USERNAME="user" /PASSWORD="password"
SET TYPE BINARY
PUT LOG_FILE.8755-GZ;1 LOG_FILE.8755.FTP
RENAME LOG_FILE.8755.FTP LOG_FILE.8755.DAT.gz
The problem is OpenVMS always rename the file in UPPER case, so I have always this result:
Linux application behaviour cannot be changes since it's hard coded, so, is there a way to rename the .gz extension in lower case? Or at least all the file name in lower case?
Solved! Go to Solution.
08-06-2012 10:08 AM
I suggest you try either:
RENAME LOG_FILE.8755.FTP "LOG_FILE.8755.DAT.gz"
or prior to execution of the FTP command
$ set proc/parse=extended
08-06-2012 10:03 PM
RENAME LOG_FILE.8755.FTP "LOG_FILE.8755.DAT.gz" (with quotas) works perfect! ;)
Instead, this "$ set proc/parse=extended " does not work for me!
Steven, I have to rename first in .FTP because I have routine that check if the files are corrently trasferring. So if the file remains .FTP means something goes wrong during transfer.