- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Installed images
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
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
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
09-19-2005 01:47 PM
09-19-2005 01:47 PM
Installed images
I want the connad file to take different action if a program is an installed image and different action if it is not.
ie
$ if installed_image (filename) = "Y"
$ then
$ write sys$output "Fn is installed"
$ else
$ write sys$output "Fn is not installed"
$ endif
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2005 02:20 PM
09-19-2005 02:20 PM
Re: Installed images
something like this should do
if .not. f$file_attributes(p1,"known")
Phil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2005 02:36 PM
09-19-2005 02:36 PM
Re: Installed images
$ spec = "sys$system:set.exe"
$ write sys$output f$file(spec,"KNOWN")
TRUE
$ spec2 = f$parse(spec)
$ write sys$output f$file(spec2,"KNOWN")
FALSE
$ spec = "disk$avms82r1:[vms$common.sysexe]set.exe"
$ write sys$output f$file(spec,"KNOWN")
FALSE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2005 03:03 PM
09-19-2005 03:03 PM
Re: Installed images
Lesley
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2005 03:51 PM
09-19-2005 03:51 PM
Re: Installed images
Lesley, welcome to the ITRC OpenVMS Forum.
Please consider recognizing the effort of the responders and the quality of the answer by assigning 'points'. Follow the 'How to earn points' link on your left, and check the FAQ for a minute in return for 'free support, worth every penny'.
http://forums1.itrc.hp.com/service/forums/helptips.do?#28
Regards,
Hein van den Heuvel
( 0 points for this reply please )
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2005 03:57 PM
09-19-2005 03:57 PM
Re: Installed images
It's even more of a gotcha than that! The file specification must translate to EXACTLY the same filespec used to install the image. This is part of "known file paranoia".
General rule: DEFINE a /SYSTEM/EXEC logical name pointing to any image to be installed which doesn't reside in a system directory. Always use it to INSTALL or reference the image, and everything will work as you expect.