- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Finding out what image is being executed by an...
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
тАО05-23-2008 04:10 AM
тАО05-23-2008 04:10 AM
From within a DCL script I need to see what image is being executed on another one of my processes.
Can't seem to do it with F$GETJPI or SHOW PROC/CO
Any ideas?
James
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2008 04:55 AM
тАО05-23-2008 04:55 AM
Re: Finding out what image is being executed by another process
$ write sys$output f$getjpi("1b1", "IMAGNAME")
DSA0:[SYS0.SYSCOMMON.APACHE.][000000]APACHE$HTTPD.EXE;1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2008 04:55 AM
тАО05-23-2008 04:55 AM
Re: Finding out what image is being executed by another process
$ write sys$output f$getjpi("1b1", "IMAGNAME")
DSA0:[SYS0.SYSCOMMON.APACHE.][000000]APACHE$HTTPD.EXE;1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2008 05:01 AM
тАО05-23-2008 05:01 AM
Re: Finding out what image is being executed by another process
You have a command file in sys$examples that does it, just do
@ sys$examples:working_set.com
Comment the line
$ imagename = F$PARSE (imagename,,,"NAME") ! separate name from filespec
if you want the full image name (disk:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2008 06:06 AM
тАО05-23-2008 06:06 AM
Re: Finding out what image is being executed by another process
I've tried using F$GETJPI(pid,"IMAGENAME") but for some reason it returns a null string.
$ write sys$output f$getjp("370020F6","imagname")
$
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2008 06:11 AM
тАО05-23-2008 06:11 AM
Re: Finding out what image is being executed by another process
I'm trying to run the correct version of GAWK on one of my sessions, but it keeps picking up the wrong version.
I've checked symbol definitions and the DCL$PATH logical but can't see anythinhg wrong.
On the session running GAWK I have the following output (Control-T'd it to get the process name and then obtained the PID)
P_CC(H1-ACT)$ gawk
_data file(s):
HFCP01::_TNA15: 16:02:32 (DCL) CPU=00:21:02.77 PF=314530 IO=5301382 MEM=327
_data file(s):
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2008 06:16 AM
тАО05-23-2008 06:16 AM
Re: Finding out what image is being executed by another process
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2008 07:42 AM
тАО05-23-2008 07:42 AM
Re: Finding out what image is being executed by another process
For example, if I stop the GAWK image, and issue the command DUMP /PAGE A.DAT instead, I get:
$ write sys$output f$getjpi("370020F6","imagname")
DSA13:[SYS1.SYSCOMMON.][SYSEXE]DUMP.EXE;1
$
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2008 07:49 AM
тАО05-23-2008 07:49 AM
Re: Finding out what image is being executed by another process
$ show proc/cont/id=pid_of_your_process
shows what image ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2008 07:58 AM
тАО05-23-2008 07:58 AM
Re: Finding out what image is being executed by another process
Once there you will see the image name changing at the bottom as it runs different programs. Then you should be able to determine the version of GAWK that is running.
If your having problems with the wrong version of GAWK running from what you expect, then I would say you have an older version of GAWK installed as an installed image. Do the following:
MC INSTALL
/LIST
Look for a listing for GAWK and see what version it is. If it's wrong then install the proper onw with a replace command in the install utility.
Phil