<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Finding out what image is being executed by another process in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/finding-out-what-image-is-being-executed-by-another-process/m-p/5110418#M44055</link>
    <description>Yes, you can do it with F$GETJPI, for example:&lt;BR /&gt;&lt;BR /&gt;$ write sys$output f$getjpi("1b1", "IMAGNAME")&lt;BR /&gt;DSA0:[SYS0.SYSCOMMON.APACHE.][000000]APACHE$HTTPD.EXE;1&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 23 May 2008 11:55:26 GMT</pubDate>
    <dc:creator>Craig A Berry</dc:creator>
    <dc:date>2008-05-23T11:55:26Z</dc:date>
    <item>
      <title>Finding out what image is being executed by another process</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/finding-out-what-image-is-being-executed-by-another-process/m-p/5110416#M44053</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;From within a DCL script I need to see what image is being executed on another one of my processes.&lt;BR /&gt;&lt;BR /&gt;Can't seem to do it with F$GETJPI or SHOW PROC/CO&lt;BR /&gt;&lt;BR /&gt;Any ideas?&lt;BR /&gt;&lt;BR /&gt;James&lt;BR /&gt;</description>
      <pubDate>Fri, 23 May 2008 11:10:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/finding-out-what-image-is-being-executed-by-another-process/m-p/5110416#M44053</guid>
      <dc:creator>Jimson_1</dc:creator>
      <dc:date>2008-05-23T11:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: Finding out what image is being executed by another process</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/finding-out-what-image-is-being-executed-by-another-process/m-p/5110417#M44054</link>
      <description>Yes, you can do with with F$GETJPI, for example:&lt;BR /&gt;&lt;BR /&gt;$ write sys$output f$getjpi("1b1", "IMAGNAME")&lt;BR /&gt;DSA0:[SYS0.SYSCOMMON.APACHE.][000000]APACHE$HTTPD.EXE;1&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 23 May 2008 11:55:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/finding-out-what-image-is-being-executed-by-another-process/m-p/5110417#M44054</guid>
      <dc:creator>Craig A Berry</dc:creator>
      <dc:date>2008-05-23T11:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: Finding out what image is being executed by another process</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/finding-out-what-image-is-being-executed-by-another-process/m-p/5110418#M44055</link>
      <description>Yes, you can do it with F$GETJPI, for example:&lt;BR /&gt;&lt;BR /&gt;$ write sys$output f$getjpi("1b1", "IMAGNAME")&lt;BR /&gt;DSA0:[SYS0.SYSCOMMON.APACHE.][000000]APACHE$HTTPD.EXE;1&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 23 May 2008 11:55:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/finding-out-what-image-is-being-executed-by-another-process/m-p/5110418#M44055</guid>
      <dc:creator>Craig A Berry</dc:creator>
      <dc:date>2008-05-23T11:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: Finding out what image is being executed by another process</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/finding-out-what-image-is-being-executed-by-another-process/m-p/5110419#M44056</link>
      <description>Hello&lt;BR /&gt;&lt;BR /&gt;You have a command file in sys$examples that does it, just do&lt;BR /&gt;&lt;BR /&gt;@     sys$examples:working_set.com&lt;BR /&gt;&lt;BR /&gt;Comment the line &lt;BR /&gt;$ imagename    = F$PARSE  (imagename,,,"NAME") ! separate name from filespec&lt;BR /&gt;&lt;BR /&gt;if you want the full image name (disk:&lt;DIR&gt;image.exe;&lt;BR /&gt;&lt;BR /&gt;&lt;/DIR&gt;</description>
      <pubDate>Fri, 23 May 2008 12:01:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/finding-out-what-image-is-being-executed-by-another-process/m-p/5110419#M44056</guid>
      <dc:creator>labadie_1</dc:creator>
      <dc:date>2008-05-23T12:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: Finding out what image is being executed by another process</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/finding-out-what-image-is-being-executed-by-another-process/m-p/5110420#M44057</link>
      <description>Cheers guys.&lt;BR /&gt;&lt;BR /&gt;I've tried using F$GETJPI(pid,"IMAGENAME") but for some reason it returns a null string.&lt;BR /&gt;&lt;BR /&gt;$ write sys$output  f$getjp("370020F6","imagname")&lt;BR /&gt;&lt;BR /&gt;$</description>
      <pubDate>Fri, 23 May 2008 13:06:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/finding-out-what-image-is-being-executed-by-another-process/m-p/5110420#M44057</guid>
      <dc:creator>Jimson_1</dc:creator>
      <dc:date>2008-05-23T13:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: Finding out what image is being executed by another process</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/finding-out-what-image-is-being-executed-by-another-process/m-p/5110421#M44058</link>
      <description>Sorry I should clarify this a little.&lt;BR /&gt;&lt;BR /&gt;I'm trying to run the correct version of GAWK on one of my sessions, but it keeps picking up the wrong version.&lt;BR /&gt;&lt;BR /&gt;I've checked symbol definitions and the DCL$PATH logical but can't see anythinhg wrong.&lt;BR /&gt;&lt;BR /&gt;On the session running GAWK I have the following output (Control-T'd it to get the process name and then obtained the PID)&lt;BR /&gt;&lt;BR /&gt;P_CC(H1-ACT)$ gawk&lt;BR /&gt;_data file(s):&lt;BR /&gt;HFCP01::_TNA15: 16:02:32   (DCL)   CPU=00:21:02.77 PF=314530 IO=5301382 MEM=327&lt;BR /&gt;_data file(s):&lt;BR /&gt;</description>
      <pubDate>Fri, 23 May 2008 13:11:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/finding-out-what-image-is-being-executed-by-another-process/m-p/5110421#M44058</guid>
      <dc:creator>Jimson_1</dc:creator>
      <dc:date>2008-05-23T13:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: Finding out what image is being executed by another process</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/finding-out-what-image-is-being-executed-by-another-process/m-p/5110422#M44059</link>
      <description>Do you have the right privs?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 23 May 2008 13:16:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/finding-out-what-image-is-being-executed-by-another-process/m-p/5110422#M44059</guid>
      <dc:creator>Ian Miller.</dc:creator>
      <dc:date>2008-05-23T13:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: Finding out what image is being executed by another process</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/finding-out-what-image-is-being-executed-by-another-process/m-p/5110423#M44060</link>
      <description>Yes I do have the right privileges.&lt;BR /&gt;&lt;BR /&gt;For example, if I stop the GAWK image, and issue the command DUMP /PAGE A.DAT instead, I get:&lt;BR /&gt;&lt;BR /&gt;$ write sys$output  f$getjpi("370020F6","imagname")&lt;BR /&gt;DSA13:[SYS1.SYSCOMMON.][SYSEXE]DUMP.EXE;1&lt;BR /&gt;$</description>
      <pubDate>Fri, 23 May 2008 14:42:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/finding-out-what-image-is-being-executed-by-another-process/m-p/5110423#M44060</guid>
      <dc:creator>Jimson_1</dc:creator>
      <dc:date>2008-05-23T14:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: Finding out what image is being executed by another process</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/finding-out-what-image-is-being-executed-by-another-process/m-p/5110424#M44061</link>
      <description>a basic&lt;BR /&gt;$ show proc/cont/id=pid_of_your_process&lt;BR /&gt;&lt;BR /&gt;shows what image ?</description>
      <pubDate>Fri, 23 May 2008 14:49:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/finding-out-what-image-is-being-executed-by-another-process/m-p/5110424#M44061</guid>
      <dc:creator>labadie_1</dc:creator>
      <dc:date>2008-05-23T14:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: Finding out what image is being executed by another process</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/finding-out-what-image-is-being-executed-by-another-process/m-p/5110425#M44062</link>
      <description>If I'm not mistaken you will get a blank imagename if it is in DCL.  Best way I would say to do this is to run your GAWK and on another terminal use the SHOW PROCESS/CONTIN/ID=pid&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;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:&lt;BR /&gt;&lt;BR /&gt;MC INSTALL&lt;BR /&gt;/LIST&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Phil</description>
      <pubDate>Fri, 23 May 2008 14:58:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/finding-out-what-image-is-being-executed-by-another-process/m-p/5110425#M44062</guid>
      <dc:creator>Phillip Thayer</dc:creator>
      <dc:date>2008-05-23T14:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: Finding out what image is being executed by another process</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/finding-out-what-image-is-being-executed-by-another-process/m-p/5110426#M44063</link>
      <description>The &lt;CONTROL t=""&gt; output you posted verifies that you are not (yet) running any image.&lt;BR /&gt;&lt;BR /&gt;The version of GAWK that you are using here must be a DCL verb.  Required command line parameters for DCL verbs are prompted for and read by DCL *before* it invokes the image.&lt;BR /&gt;&lt;BR /&gt;You need to get the VERB utility, available at:&lt;BR /&gt;&lt;A href="http://vms.process.com/fileserv-software.html" target="_blank"&gt;http://vms.process.com/fileserv-software.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Then the "image" line output with "VERB GAWK" will specify what version of GAWK it is running.  The default path for an image is SYS$SYSTEM:, but it may also be a logical name.&lt;BR /&gt;&lt;BR /&gt;To update your verb definition for your process use "SET COMMAND GAWK.CLD".&lt;BR /&gt;To update it permanantly for all users use:&lt;BR /&gt;&lt;BR /&gt;$ SET COMMAND GAWK.CLD -&lt;BR /&gt;/TABLES=SYS$COMMON:[SYSLIB]DCLTABLES.EXE&lt;BR /&gt;/OUTPUT=SYS$COMMON:[SYSLIB]DCLTABLES.EXE&lt;BR /&gt;$ INSTALL REPLACE SYS$SHARE:DCLTABLES.EXE&lt;BR /&gt;(users must relogin to use the new definition).&lt;BR /&gt;&lt;BR /&gt;You posted:&lt;BR /&gt;$ gawk&lt;BR /&gt;_data file(s):&lt;BR /&gt;HFCP01::_TNA15: 16:02:32 (DCL) CPU=00:21:02.77 PF=314530 IO=5301382 MEM=327&lt;BR /&gt;&lt;/CONTROL&gt;</description>
      <pubDate>Fri, 23 May 2008 15:15:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/finding-out-what-image-is-being-executed-by-another-process/m-p/5110426#M44063</guid>
      <dc:creator>Jess Goodman</dc:creator>
      <dc:date>2008-05-23T15:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: Finding out what image is being executed by another process</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/finding-out-what-image-is-being-executed-by-another-process/m-p/5110427#M44064</link>
      <description>&lt;!--!*#--&gt;As just mentioned, the prompting is being done by DCL.  To get past that, so you are actually waiting inside GAWK, try&lt;BR /&gt;&lt;BR /&gt;$ gawk tt:&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 23 May 2008 18:40:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/finding-out-what-image-is-being-executed-by-another-process/m-p/5110427#M44064</guid>
      <dc:creator>John Reagan</dc:creator>
      <dc:date>2008-05-23T18:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: Finding out what image is being executed by another process</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/finding-out-what-image-is-being-executed-by-another-process/m-p/5110428#M44065</link>
      <description>James,&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I'm trying to run the correct version of &lt;BR /&gt;&amp;gt;GAWK on one of my sessions, but it keeps &lt;BR /&gt;&amp;gt;picking up the wrong version.&lt;BR /&gt;&lt;BR /&gt;  A bigger (privileged) hammer to see what's going on:&lt;BR /&gt;&lt;BR /&gt;$ SET PROCESS/PRIV=CMKRNL&lt;BR /&gt;$ SET WATCH/CLASS=MAJOR FILE&lt;BR /&gt;$ gawk&lt;BR /&gt;&lt;BR /&gt;this will trace file system operations, which will reveal which directories and files are being accessed. It might not show *why*, but at least you can confirm your suspicion.&lt;BR /&gt;&lt;BR /&gt;When finished:&lt;BR /&gt;&lt;BR /&gt;$ SET WATCH/CLASS=NONE FILE</description>
      <pubDate>Sun, 25 May 2008 21:21:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/finding-out-what-image-is-being-executed-by-another-process/m-p/5110428#M44065</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2008-05-25T21:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: Finding out what image is being executed by another process</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/finding-out-what-image-is-being-executed-by-another-process/m-p/5110429#M44066</link>
      <description>Thanks to all who replied.&lt;BR /&gt;&lt;BR /&gt;The problem was that the command GAWK.CLD had been installed, by something I have yet to discover.&lt;BR /&gt;&lt;BR /&gt;So indeed, by executing GAWK with no arguments, it is DCL and the command interpreter that is prompting for the input files, and not the GAWK image itself.&lt;BR /&gt;&lt;BR /&gt;Doing a SET COMMAND /DELETE=GAWK removed the command and allowed me to execute GAWK.EXE directly&lt;BR /&gt;&lt;BR /&gt;JP.&lt;BR /&gt;</description>
      <pubDate>Wed, 28 May 2008 05:57:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/finding-out-what-image-is-being-executed-by-another-process/m-p/5110429#M44066</guid>
      <dc:creator>Jimson_1</dc:creator>
      <dc:date>2008-05-28T05:57:35Z</dc:date>
    </item>
  </channel>
</rss>

