- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: finding out another process's default director...
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
тАО04-02-2008 12:25 PM
тАО04-02-2008 12:25 PM
TIA
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-02-2008 12:34 PM
тАО04-02-2008 12:34 PM
Re: finding out another process's default directory?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-02-2008 12:38 PM
тАО04-02-2008 12:38 PM
Re: finding out another process's default directory?
This information is maintained within some process logical names and within a system service, and AFAIK there are no related APIs to access the associated SYS$DISK logical name and the SYS$SETDDIR system service directory information across processes.
Accordingly, the best approach is to have a cooperating application communicate that setting as needed.
To confirm this, made a quick pass through the sys$getjpi itemcodes for OpenVMS V8.3, and see nothing relevant listed. This service would be the logical spot to implement this.
Kernel-mode hackery is certainly feasible.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-02-2008 01:02 PM
тАО04-02-2008 01:02 PM
Re: finding out another process's default directory?
If this is required because the application design really needs this then I would suggest changing the application design.
Regardless of the above, bear in mind that the current default directory can be a rather ornery beast, depending as it does on any number of process private logical names, particularly where the default directory is set to a search list.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-02-2008 01:08 PM
тАО04-02-2008 01:08 PM
Re: finding out another process's default directory?
That, and it's wicked fickle.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-02-2008 01:52 PM
тАО04-02-2008 01:52 PM
Re: finding out another process's default directory?
I can identify the process that wrote the files *after* the fact from security audits. But I would like to identify when one of these server processes actually changes their default directory by monitoring this important process attribute somehow.
I know there is no $GETJPI item code or other API for it. I can find out the current default device by getting the tranlation of SYS$DISK via ANALYZE/SYSTEM and CLUE PROCESS/LOGICAL. So I was looking for a SDA method or a kernel-mode program that could return the current directory. (On my VAX 6.2 systems we have a program called "P" that can do this.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-02-2008 04:23 PM
тАО04-02-2008 04:23 PM
SolutionBrian 'VAXman' Schenkenberger made examples of this back in 1993. And there is also an even older 'lib_default_dir' routine out there.
Not sure where that stands with OpenVMS versions, Itanium ports and so on.
With SDA you can most certainly just read it:
ANAL/SYSTEM
SDA> SET PROC AUDIT_SERVER
SDA> ex PIO$GT_DDSTRING;20
00000000 00000000 00000000 00000000 00000000 0000005D 45584553 59535B08 .[SYSEXE]....................... 00000000.7FFD0290
There's your counted string.
SDA> set proc hein
SDA> ex PIO$GT_DDSTRING;20
00000000 00000000 00005D4E 4945482E 52455355 5F455652 45535543 45445B15 .[DECUSERVE_USER.HEIN].......... 00000000.7FFD0290
Google is your friend.
hth,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-03-2008 01:31 AM
тАО04-03-2008 01:31 AM
Re: finding out another process's default directory?
Yeah, that DOES get you the -directory-; but _NOT_ the device on which to search that directory. Which might be a Concealed Device, and/or a searchlist. Both are already demonstrated by [SYSEXE] ; which normally should reside in SYS$SYSROOT: , which is both.
This looks to be only half the answer.
Proost.
Have one on me.
jpe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-03-2008 07:16 AM
тАО04-03-2008 07:16 AM
Re: finding out another process's default directory?
Jan, that was the entire answer to my quesion -as I already said you can get the current translation of SYS$DISK from SDA's CLUE PROCESS/LOGICAL command.
Thread closed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2008 06:31 AM
тАО04-04-2008 06:31 AM
Re: finding out another process's default directory?
My GETCMD utility makes use of this (albeit in BLISS):
http://vms.process.com/ftp/vms-freeware/fileserv/getcmd.zip
(The VAX version still does the old queue-an-AST method.)
Hunter