<?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: ptree in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ptree/m-p/2660715#M48348</link>
    <description>Well, thank you everyone for your help and comments! The "UNIX95" command with all its options is what I was looking for...&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;Mischa</description>
    <pubDate>Fri, 08 Feb 2002 07:36:42 GMT</pubDate>
    <dc:creator>michael Fischer_1</dc:creator>
    <dc:date>2002-02-08T07:36:42Z</dc:date>
    <item>
      <title>ptree</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ptree/m-p/2660708#M48341</link>
      <description>Hello everybody,&lt;BR /&gt;&lt;BR /&gt;I'm looking for a command like "ptree" (SUN Solaris) in HP-UX 11.0, that gives me a process-tree of all processes (parent - child). I want to integrate it into a shell-skript, so I can't use sam. Is there everything else like ps -ef | grep -v grep | grep &lt;PROCESS name=""&gt; | awk '{print $2,$3}'  ?&lt;BR /&gt;&lt;BR /&gt;Any Idea?&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;/PROCESS&gt;</description>
      <pubDate>Thu, 07 Feb 2002 14:54:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ptree/m-p/2660708#M48341</guid>
      <dc:creator>michael Fischer_1</dc:creator>
      <dc:date>2002-02-07T14:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: ptree</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ptree/m-p/2660709#M48342</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;You could try:&lt;BR /&gt;&lt;BR /&gt;# UNIX95= ps -eH&lt;BR /&gt;&lt;BR /&gt;Note the blank after the UNIX95 variable and the absence of any semicolon before the 'ps' command.  This sets the XPG4 behavior for the duration of the command line only.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 07 Feb 2002 14:58:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ptree/m-p/2660709#M48342</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2002-02-07T14:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: ptree</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ptree/m-p/2660710#M48343</link>
      <description>Maybe something like xps:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.netwinder.org/~rocky/xps-home/xps.html" target="_blank"&gt;http://www.netwinder.org/~rocky/xps-home/xps.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Thu, 07 Feb 2002 15:16:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ptree/m-p/2660710#M48343</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-02-07T15:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: ptree</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ptree/m-p/2660711#M48344</link>
      <description>attached is the hp version of ptree.sh&lt;BR /&gt;&lt;BR /&gt;--&lt;BR /&gt;mark</description>
      <pubDate>Thu, 07 Feb 2002 15:27:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ptree/m-p/2660711#M48344</guid>
      <dc:creator>Mark Greene_1</dc:creator>
      <dc:date>2002-02-07T15:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: ptree</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ptree/m-p/2660712#M48345</link>
      <description>Mischa,&lt;BR /&gt;&lt;BR /&gt;forget about xps, it doesn't run on hpux - those dogs!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Thu, 07 Feb 2002 15:40:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ptree/m-p/2660712#M48345</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-02-07T15:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: ptree</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ptree/m-p/2660713#M48346</link>
      <description>To add to above here's UNIX95 by some examples:&lt;BR /&gt;To sort all the proceses by memory size: &lt;BR /&gt;&lt;BR /&gt;   # UNIX95= ps -eo vsz,ruser,args | sort -rn | more &lt;BR /&gt;&lt;BR /&gt;To find all processes that have a specific basename: &lt;BR /&gt;&lt;BR /&gt;   # UNIX95= ps -fC process_name&lt;BR /&gt;&lt;BR /&gt;No grep needed, and most important, it returns ONLY the deamon  (or process) you are after. Check out the difference between: &lt;BR /&gt;ps -ef | grep sh &lt;BR /&gt;UNIX95= ps -fC sh &lt;BR /&gt;&lt;BR /&gt;The second form (which activates the -C option in XPG4 mode) is really inetresting. &lt;BR /&gt;&lt;BR /&gt;Another feature is the ability to create a customized output format, if you don't need start-time (which varies in format), you can eliminate it. Consider this form: &lt;BR /&gt;UNIX95= ps -C sh -o ruser,pid,args &lt;BR /&gt;&lt;BR /&gt;g'd luck &lt;BR /&gt;t++</description>
      <pubDate>Thu, 07 Feb 2002 16:25:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ptree/m-p/2660713#M48346</guid>
      <dc:creator>T. M. Louah</dc:creator>
      <dc:date>2002-02-07T16:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: ptree</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ptree/m-p/2660714#M48347</link>
      <description>ptree???&lt;BR /&gt;&lt;BR /&gt;Isn't that one of the char in "The Land Before Time"?&lt;BR /&gt;&lt;BR /&gt;Sorry, my daughter had me watch it with her the other night.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The above UNIX95 should give you what you want.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;...jcd...</description>
      <pubDate>Thu, 07 Feb 2002 21:26:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ptree/m-p/2660714#M48347</guid>
      <dc:creator>Joseph C. Denman</dc:creator>
      <dc:date>2002-02-07T21:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: ptree</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ptree/m-p/2660715#M48348</link>
      <description>Well, thank you everyone for your help and comments! The "UNIX95" command with all its options is what I was looking for...&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;Mischa</description>
      <pubDate>Fri, 08 Feb 2002 07:36:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ptree/m-p/2660715#M48348</guid>
      <dc:creator>michael Fischer_1</dc:creator>
      <dc:date>2002-02-08T07:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: ptree</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ptree/m-p/2660716#M48349</link>
      <description>Hi Mischa,&lt;BR /&gt;&lt;BR /&gt;the UNIX95- Variable should be set only when needed, because there are a lot of other shell scripts, used by your system, which have problems if this variable is set. ( Some of them even have a command line: unset UNIX95 )&lt;BR /&gt;Another remark: You can use the option -H for the ps- command no matter which value was assigned to the variable.&lt;BR /&gt;&lt;BR /&gt;Allways stay on the bright side of life!&lt;BR /&gt;&lt;BR /&gt;Peter</description>
      <pubDate>Fri, 08 Feb 2002 08:38:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ptree/m-p/2660716#M48349</guid>
      <dc:creator>Peter Kloetgen</dc:creator>
      <dc:date>2002-02-08T08:38:11Z</dc:date>
    </item>
  </channel>
</rss>

