- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- copy [/confirm]
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
Forums
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
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
тАО10-01-2008 05:22 AM
тАО10-01-2008 05:22 AM
Second, if a version number is explicitly mentiond in the first argument (From), the sane version will be created if the destination (TO) is doesn't contain a version spec. Luckily, a waning message is issued that newer versions do exist so it doesn't have to go unnoticed.
I did some investigation, resulting in the attached procedure. No doubt, there is more to look for, but these two is what caused some frowns.
(originally signalled on VMS 7.1 on VAX, but the same happens on VMS 8.3 on Alpha)
OpenVMS Developer & System Manager
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-01-2008 06:05 AM
тАО10-01-2008 06:05 AM
SolutionYou can not 'see' which target output version is 'hard' versus 'soft'.
It behooves the writer of the script to try to avoid this potential confusion for the end-user.
- the script could add a /LOG to show what actually is done.
- The script could test for an existing file if an explicit target version is being used. It might then (ask to) delete that target or skip trying a known to fail copy.
fwiw,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-01-2008 06:43 AM
тАО10-01-2008 06:43 AM
Re: copy [/confirm]
Luckily, a waning message is issued that newer versions do exist so it doesn't have to go unnoticed.
<<<
If there is any chance of copying to a LOWER version, as you seem to describe here, then the autor of the installation procedure (most certainly in case of "a very critical package" should specify a semicolon ( ";" ) in the target specification!
( If BACKUP is used, /NEW has the same result)
fwiw
Proost.
Have one on me.
jpe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-01-2008 01:39 PM
тАО10-01-2008 01:39 PM
Re: copy [/confirm]
>originally signalled on VMS 7.1 on VAX,
>but the same happens on VMS 8.3 on Alpha
and the same on all versions back to VAX V1.0 and for all future versions on all architectures.
What you're seeing illustrates standard file name defaulting. The input file is used as defaults for the output file. Thus if you specify an explicit version number on the input file, it will be used for the output file unless you specify an explicit output file version number (which may, of course, be relative).
Assuming you want the destination file to superceed any existing versions in the destination directory, you should code your copy command as:
$ COPY 'from' [-.2];/CONFIRM
This will always do what (I think) you want, and the confirmation question will show the output version as ";".
I also echo Hein's suggestion of adding /LOG. (I routinely use /LOG on all interactive COPY commands to make sure it really did what I wanted).
The filename default mechanism is pervasive throughout all of DCL. It's a good idea to carefully study the behaviour of F$PARSE to make sure you understand it.
FWIW, I'm still learning some of the very slick things that can be done with it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-01-2008 01:58 PM
тАО10-01-2008 01:58 PM
Re: copy [/confirm]
Consider automating the whole verification and only prompting in exceptional conditions; computers are good at that, and humans not so much.
Consider automating the front-end processing on the COPY command to verify whatever it is that you're expecting the human to look for, and adjusting the human-visible prompt accordingly. Then shell, err, spawn the proper COPY command or invoke callable CONVERT (the de facto API for copying files) to perform the transfer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-06-2008 07:33 AM
тАО10-06-2008 07:33 AM
Re: copy [/confirm]
The issue arose when preparing for an update, and the database files needed to be put aside as a backup (there is no other means inside the database package to achieve this). The procedure could be optimized to a more sophisticated method, but this one needed to be created as soon as possible - and as safe as could possibly be achieved in the timeframe. Therefore, to be as sure as possible that the right files were copied, /CONFIRM is used, besides /LOG.
So the user was unpleasently surprised to see that he was to copy version ;1 to version ;1, where version ;4 already existed...
OpenVMS Developer & System Manager
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-06-2008 11:24 AM
тАО10-06-2008 11:24 AM
Re: copy [/confirm]
Which can be an entirely reasonable degree of paranoia when production servers are involved. My preferred solution here then being "don't let the user enter the failure-prone stuff", and "don't prompt the user for a normal condition." PCSI kits and VMSINSTAL kits are comparatively primitive solutions, but they're also effective solutions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-06-2008 10:26 PM
тАО10-06-2008 10:26 PM
Re: copy [/confirm]
Nor possible - and that scares the system manager, because "What if there would be something we didn't think of". They need to be in control, some way...
OpenVMS Developer & System Manager
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-06-2008 10:27 PM
тАО10-06-2008 10:27 PM
Re: copy [/confirm]
OpenVMS Developer & System Manager