<?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: executable name in ps command in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/executable-name-in-ps-command/m-p/2936491#M928935</link>
    <description>Hi JW,&lt;BR /&gt;&lt;BR /&gt;ps is only going to show the command as it was entered - for EX&lt;BR /&gt;&lt;BR /&gt;command&lt;BR /&gt;./command&lt;BR /&gt;/full/path/to/command&lt;BR /&gt;etc.....&lt;BR /&gt;&lt;BR /&gt;So however the command was called is how ps will display it.&lt;BR /&gt;NOTE: that sometimes the actual command string is so long a "normal" ps -ef command output will truncate it. In that case use -x in the ps command - for EX:&lt;BR /&gt;ps -efx&lt;BR /&gt;You should get the entire command then. This is especially useful when you want to see all the command line parameters.&lt;BR /&gt;&lt;BR /&gt;Rgds,&lt;BR /&gt;Jeff</description>
    <pubDate>Wed, 26 Mar 2003 17:31:26 GMT</pubDate>
    <dc:creator>Jeff Schussele</dc:creator>
    <dc:date>2003-03-26T17:31:26Z</dc:date>
    <item>
      <title>executable name in ps command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/executable-name-in-ps-command/m-p/2936488#M928932</link>
      <description>Hi, &lt;BR /&gt;&lt;BR /&gt;When I use ps command to look for a process, the process name returned in some cases are listed by its implied path.&lt;BR /&gt;&lt;BR /&gt;example:&lt;BR /&gt;olympus!jl1521dv:~ [37]&amp;gt; ps -aefl | grep -v grep | grep ChkImmediate&lt;BR /&gt;  1 S sbcdtest  8697     1  0 168 20         42ad9800 2129         597451c0  Mar 24  ?         0:15 ChkImmediate&lt;BR /&gt;&lt;BR /&gt;In this example, ChkImmediate could be from any directories.  &lt;BR /&gt;&lt;BR /&gt;What I would like to do is to find out which directory ChkImmediate came from.&lt;BR /&gt;&lt;BR /&gt;Any suggestions will greatly help.&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;JW</description>
      <pubDate>Wed, 26 Mar 2003 17:12:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/executable-name-in-ps-command/m-p/2936488#M928932</guid>
      <dc:creator>Jit-Wee Lim</dc:creator>
      <dc:date>2003-03-26T17:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: executable name in ps command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/executable-name-in-ps-command/m-p/2936489#M928933</link>
      <description>As root&lt;BR /&gt;&lt;BR /&gt;find / -name ChkImmediate &lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 26 Mar 2003 17:14:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/executable-name-in-ps-command/m-p/2936489#M928933</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-03-26T17:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: executable name in ps command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/executable-name-in-ps-command/m-p/2936490#M928934</link>
      <description>Or use lsof&lt;BR /&gt;&lt;BR /&gt;a5:/ 104 # ps&lt;BR /&gt;   PID TTY       TIME COMMAND&lt;BR /&gt; 18814 ttyp1     0:00 tcsh&lt;BR /&gt; 18850 ttyp1     0:00 ps&lt;BR /&gt;a5:/ 105 # lsof -p 18814&lt;BR /&gt;COMMAND   PID USER   FD   TYPE DEVICE SIZE/OFF  NODE NAME&lt;BR /&gt;tcsh    18814 root  cwd   VDIR 64,0x3     8192     2 /&lt;BR /&gt;tcsh    18814 root  txt   VREG 64,0xb   425984    56 /pro/bin/tcsh&lt;BR /&gt;tcsh    18814 root  mem   VREG 64,0x7    40960  1766 /usr/lib/libnss_files.1&lt;BR /&gt;tcsh    18814 root  mem   VREG 64,0x7    24576 17843 /usr/lib/libdld.2&lt;BR /&gt;tcsh    18814 root  mem   VREG 64,0x7  1552384 15720 /usr/lib/libc.2&lt;BR /&gt;tcsh    18814 root  mem   VREG 64,0x7   188416 17841 /usr/lib/dld.sl&lt;BR /&gt;tcsh    18814 root  mem   VREG 64,0x8      532  3443 /var/spool/pwgr/status&lt;BR /&gt;tcsh    18814 root   15u  VCHR 17,0x1   0t2021  1280 /dev/pty/ttyp1&lt;BR /&gt;tcsh    18814 root   16u  VCHR 17,0x1   0t2021  1280 /dev/pty/ttyp1&lt;BR /&gt;tcsh    18814 root   17u  VCHR 17,0x1   0t2021  1280 /dev/pty/ttyp1&lt;BR /&gt;tcsh    18814 root   18u  VCHR 17,0x1   0t2021  1280 /dev/pty/ttyp1&lt;BR /&gt;tcsh    18814 root   19u  VCHR 17,0x1   0t2021  1280 /dev/pty/ttyp1&lt;BR /&gt;a5:/ 106 #&lt;BR /&gt;&lt;BR /&gt;as you can see in the third line of output, the location of the command is /pro/bin/tcsh&lt;BR /&gt;&lt;BR /&gt;[ BTW this is much more reliable than the find command, since commands can change the name they appear under in ps ]&lt;BR /&gt;&lt;BR /&gt;Enjoy, have FUN! H.Merijn</description>
      <pubDate>Wed, 26 Mar 2003 17:23:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/executable-name-in-ps-command/m-p/2936490#M928934</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2003-03-26T17:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: executable name in ps command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/executable-name-in-ps-command/m-p/2936491#M928935</link>
      <description>Hi JW,&lt;BR /&gt;&lt;BR /&gt;ps is only going to show the command as it was entered - for EX&lt;BR /&gt;&lt;BR /&gt;command&lt;BR /&gt;./command&lt;BR /&gt;/full/path/to/command&lt;BR /&gt;etc.....&lt;BR /&gt;&lt;BR /&gt;So however the command was called is how ps will display it.&lt;BR /&gt;NOTE: that sometimes the actual command string is so long a "normal" ps -ef command output will truncate it. In that case use -x in the ps command - for EX:&lt;BR /&gt;ps -efx&lt;BR /&gt;You should get the entire command then. This is especially useful when you want to see all the command line parameters.&lt;BR /&gt;&lt;BR /&gt;Rgds,&lt;BR /&gt;Jeff</description>
      <pubDate>Wed, 26 Mar 2003 17:31:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/executable-name-in-ps-command/m-p/2936491#M928935</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2003-03-26T17:31:26Z</dc:date>
    </item>
  </channel>
</rss>

