- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Python and OpenVMS
Operating System - OpenVMS
1748104
Members
4707
Online
108758
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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-08-2008 10:15 AM
тАО09-08-2008 10:15 AM
Python and OpenVMS
I have a Python script that is UNIX/LINUX centric. In short, it creates a module to connect to an Oracle Database. However, it does not translate directory-type logicals in the VMS fashion (ex. disk1:[oracle_home] vs. /disk1/oracle_home/). It is looking for a UNIX style directory structure. Is there a way to make a local session "think" in this UNIX/LINUX fashion? If more of an explanation is needed, please let me know. Thanks
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-08-2008 10:48 AM
тАО09-08-2008 10:48 AM
Re: Python and OpenVMS
The C run-time library that's underneath most of these environments allows direct access to Unix-format file specifications on OpenVMS; did you try /disk1/oracle_home under Python?
Otherwise, please post up the Python kit identity and the OpenVMS versions and architecture, and a short example reproducer of what you're trying to do here.
Otherwise, please post up the Python kit identity and the OpenVMS versions and architecture, and a short example reproducer of what you're trying to do here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-08-2008 01:18 PM
тАО09-08-2008 01:18 PM
Re: Python and OpenVMS
Thanks.. This may have solved my issue. I am waiting for a C compiler to be placed on our system to see if the module truly compiles correctly...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-08-2008 09:53 PM
тАО09-08-2008 09:53 PM
Re: Python and OpenVMS
Python on OpenVMS use Unix style filename, this allow to port more easily Unix application on OpenVMS.
But it also provide routines to convert filename from one environment to the other:
$ python
Python 2.5.2 (r252:60911, Aug 2 2008, 10:38:44) [DECC] on OpenVMS
Type "help", "copyright", "credits" or "license" for more information.
>>> import vms.crtl
>>> print vms.crtl.to_vms.__doc__
to_vms(name) -> vms_name
Converts UNIX style file specifications to OpenVMS file specifications.
>>> print vms.crtl.from_vms.__doc__
from_vms(name) -> unix_name
Converts OpenVMS style file specifications to Unix file specifications.
>>>
JF
But it also provide routines to convert filename from one environment to the other:
$ python
Python 2.5.2 (r252:60911, Aug 2 2008, 10:38:44) [DECC] on OpenVMS
Type "help", "copyright", "credits" or "license" for more information.
>>> import vms.crtl
>>> print vms.crtl.to_vms.__doc__
to_vms(name) -> vms_name
Converts UNIX style file specifications to OpenVMS file specifications.
>>> print vms.crtl.from_vms.__doc__
from_vms(name) -> unix_name
Converts OpenVMS style file specifications to Unix file specifications.
>>>
JF
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP