- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: DCL SCRIPT TO RENAME SUB DIRECTORIES
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
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
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-15-2006 04:41 AM
тАО08-15-2006 04:41 AM
Each site has the same dir structure
Enclose as an attachment are all the Nodes with their directory structure.
Can someone wrie a simple script to do the renames?
Thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2006 04:58 AM
тАО08-15-2006 04:58 AM
SolutionThe thing you might want to know is that you can rename the directory files itself, if you are allowed to deleted them.
Doing so all files in the directory will 'move' with the directory (they will not move, they are just found through other names now).
So either grab some sysprv or (shudder..) bypass, or SET FILE/PROT...D... TALP1:[USER]COUNTRYWIDE.DIR
Now $RENAME/LOG TALP1:[USER]COUNTRYWIDE.DIR
TALP1:[USER]COUNTRYWIDE_DELETE.DIR
and
$RENAME/LOG TALP1:[USER]TDI.DIR TALP1:[USER]TDI_DELETE.DIR
btw... may I recommend a plain .TXT file for plain text attachement net time?
Cheers,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2006 05:07 AM
тАО08-15-2006 05:07 AM
Re: DCL SCRIPT TO RENAME SUB DIRECTORIES
maybe - just maybe - you should consider to contract someone to help you with your OpenVMS system management on a daily basis or just if there are certain tasks to be done.
Also please - when adding attachments - consider to use non-proprietary file formats and especially prevent those documents, which may possibly contain viruses. While almost anybody will probably use anti-virus software, preventing the possibility of spreading viruses in the first place may be a good idea.
The contents of the information you're trying to provide, will most likely not suffer, if presented in a plain .TXT file.
Thanks,
Volker.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2006 06:43 AM
тАО08-15-2006 06:43 AM
Re: DCL SCRIPT TO RENAME SUB DIRECTORIES
The script that you need contains TWO RENAME commands.
For execution, you have a variety of options including batch, DECnet, and the SYSMAN DO command.
As to writing the entire procedure, I can recommend that you take a fairly quick read through the documentation kit (it is available at http://www.hp.com/go/openvms ).
- Bob Gezelter, http://www.rlgsc.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2006 03:13 AM
тАО08-16-2006 03:13 AM
Re: DCL SCRIPT TO RENAME SUB DIRECTORIES
In the past, I have needed to make similar changes on a wide area network with about 30 VMS systems. I found it easiest to just use SYSMAN. You need to SET the ENVIRONMENT to include all of the nodes, and then use the DO command to execute each command on the remote nodes. You will need to use the full file spec for the directory names.
If this is something that gets done frequently, you might be better off writing a command file to make the changes and copy the file to each node. You could still use SYSMAN to execute the command file remotely.
You may want to check out HELP for the RENAME command as well as the SYSMAN internal HELP.
Allan in Atlanta
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2006 03:31 AM
тАО08-16-2006 03:31 AM
Re: DCL SCRIPT TO RENAME SUB DIRECTORIES
You may define group of nodes using logical names in a special SYSMAN$NODE_TABLE to ease the definition of an environment. See the System Managers document.
regards Kalle