<?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 long output for PS command in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/long-output-for-ps-command/m-p/3056123#M907641</link>
    <description>Hi all,&lt;BR /&gt;These commands print the PID of the process.&lt;BR /&gt;Linux:&lt;BR /&gt;ps -auwwwx | grep gravitixagent | grep -v grep|awk '{print $2}'&lt;BR /&gt;&lt;BR /&gt;Solaris:&lt;BR /&gt;/usr/ucb/ps -auwwwx | grep gravitixagent | grep -v grep|awk '{print $2}'&lt;BR /&gt;&lt;BR /&gt;HP : ??&lt;BR /&gt;I'm looking for the similar command in HP which gives the output beyond 80 characters.&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
    <pubDate>Mon, 25 Aug 2003 16:38:08 GMT</pubDate>
    <dc:creator>Adi_7</dc:creator>
    <dc:date>2003-08-25T16:38:08Z</dc:date>
    <item>
      <title>long output for PS command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/long-output-for-ps-command/m-p/3056123#M907641</link>
      <description>Hi all,&lt;BR /&gt;These commands print the PID of the process.&lt;BR /&gt;Linux:&lt;BR /&gt;ps -auwwwx | grep gravitixagent | grep -v grep|awk '{print $2}'&lt;BR /&gt;&lt;BR /&gt;Solaris:&lt;BR /&gt;/usr/ucb/ps -auwwwx | grep gravitixagent | grep -v grep|awk '{print $2}'&lt;BR /&gt;&lt;BR /&gt;HP : ??&lt;BR /&gt;I'm looking for the similar command in HP which gives the output beyond 80 characters.&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Mon, 25 Aug 2003 16:38:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/long-output-for-ps-command/m-p/3056123#M907641</guid>
      <dc:creator>Adi_7</dc:creator>
      <dc:date>2003-08-25T16:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: long output for PS command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/long-output-for-ps-command/m-p/3056124#M907642</link>
      <description>Hi Adi,&lt;BR /&gt;&lt;BR /&gt;In 11i &amp;amp; up-to-date patched 11.0 you can use the -x parameter in a ps command to get more output....&lt;BR /&gt;&lt;BR /&gt;ps -efx &lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Jeff</description>
      <pubDate>Mon, 25 Aug 2003 16:50:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/long-output-for-ps-command/m-p/3056124#M907642</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2003-08-25T16:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: long output for PS command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/long-output-for-ps-command/m-p/3056125#M907643</link>
      <description>&lt;BR /&gt;Did you try &lt;BR /&gt;&lt;BR /&gt;ps -ef&lt;BR /&gt;&lt;BR /&gt;That can go more than 80 characters, with the command line . . . &lt;BR /&gt;&lt;BR /&gt;but if you just want the PID, then &lt;BR /&gt;&lt;BR /&gt;ps -ef | grep whatever | awk '{print $}' &lt;BR /&gt;&lt;BR /&gt;will work.</description>
      <pubDate>Mon, 25 Aug 2003 17:48:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/long-output-for-ps-command/m-p/3056125#M907643</guid>
      <dc:creator>Robert A. Pierce</dc:creator>
      <dc:date>2003-08-25T17:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: long output for PS command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/long-output-for-ps-command/m-p/3056126#M907644</link>
      <description>Adi,&lt;BR /&gt;&lt;BR /&gt;Here are a couple of scripts I use that might be of interest:&lt;BR /&gt;&lt;BR /&gt;$ cat $(which psgrep)&lt;BR /&gt;#!/sbin/sh&lt;BR /&gt;#  psgrep - ps and grep in one step&lt;BR /&gt;&lt;BR /&gt;print "     UID   PID  PPID  C    STIME TTY       TIME COMMAND"&lt;BR /&gt;ps -fade | grep $1 | grep -v grep&lt;BR /&gt;$&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;$ cat $(which awkc)&lt;BR /&gt;# awkc - print out one or more columns&lt;BR /&gt;&lt;BR /&gt;p=\$$( echo $1 | sed 's/,/,\$/g' )&lt;BR /&gt;shift&lt;BR /&gt;eval "awk '{ print $p }'" $*&lt;BR /&gt;# eof&lt;BR /&gt;$&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;&lt;BR /&gt;Rob Pierce</description>
      <pubDate>Mon, 25 Aug 2003 17:53:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/long-output-for-ps-command/m-p/3056126#M907644</guid>
      <dc:creator>Robert A. Pierce</dc:creator>
      <dc:date>2003-08-25T17:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: long output for PS command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/long-output-for-ps-command/m-p/3056127#M907645</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Jeff is correct.  You should have, or download and install:&lt;BR /&gt;&lt;BR /&gt;For 11.0: PHCO_26274, PHKL_29434 &amp;amp; PHKL_26008&lt;BR /&gt;&lt;BR /&gt;These add the '-x' option to 'ps' and enable the 'pstat(2)' interface to handle the kernel's extended storage (up to 1020 characters).&lt;BR /&gt;&lt;BR /&gt;For 11.11, make sure you have patch PHCO_29042.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 25 Aug 2003 18:16:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/long-output-for-ps-command/m-p/3056127#M907645</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2003-08-25T18:16:36Z</dc:date>
    </item>
  </channel>
</rss>

