- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Renaming files in lower case
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2012 08:30 AM - edited 08-06-2012 08:47 AM
08-06-2012 08:30 AM - edited 08-06-2012 08:47 AM
Dear community,
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
EXIT
The problem is OpenVMS always rename the file in UPPER case, so I have always this result:
LOG_FILE.8755.DAT.GZ
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?
Thanks
Lucas
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2012 10:08 AM
08-06-2012 10:08 AM
Solution
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2012 11:09 AM
08-06-2012 11:09 AM
Re: Renaming files in lower case
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2012 11:17 AM
08-06-2012 11:17 AM
Re: Renaming files in lower case
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2012 10:03 PM
08-06-2012 10:03 PM
Re: Renaming files in lower case
Thanks Andy,
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2012 12:02 PM
08-07-2012 12:02 PM
Re: Renaming files in lower case
Thanks Steven.
Your response to the above question pointed me to the solution to a related problem of my own.
Dave.