<?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: ps cmmand syntax in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ps-cmmand-syntax/m-p/4749214#M388089</link>
    <description>the option "-o" is not supported.&lt;BR /&gt;Please advice other ...&lt;BR /&gt;&lt;BR /&gt;/run&amp;gt;ps -eo vsz&lt;BR /&gt;ps: illegal option -- o&lt;BR /&gt;usage: ps [-edaxzflP] [-u ulist] [-g glist] [-p plist] [-t tlist] [-R prmgroup] [-Z psetidlist]&lt;BR /&gt;/run&amp;gt;uname -a&lt;BR /&gt;HP-UX XXXXXX B.11.11 U 9000/800 2311410363 unlimited-user license&lt;BR /&gt;</description>
    <pubDate>Tue, 08 Feb 2011 06:25:24 GMT</pubDate>
    <dc:creator>chuikingman</dc:creator>
    <dc:date>2011-02-08T06:25:24Z</dc:date>
    <item>
      <title>ps cmmand syntax</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ps-cmmand-syntax/m-p/4749212#M388087</link>
      <description>&lt;!--!*#--&gt;I use hp unix .&lt;BR /&gt;I want to get vsz of the process .&lt;BR /&gt;What is the syntax ...&lt;BR /&gt;&lt;BR /&gt;/run&amp;gt;ps -help&lt;BR /&gt;ps: illegal option -- h&lt;BR /&gt;ps: option requires an argument -- p&lt;BR /&gt;usage: ps [-edaxzflP] [-u ulist] [-g glist] [-p plist] [-t tlist] [-R prmgroup] [-Z psetidlist] &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 07 Feb 2011 07:54:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ps-cmmand-syntax/m-p/4749212#M388087</guid>
      <dc:creator>chuikingman</dc:creator>
      <dc:date>2011-02-07T07:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: ps cmmand syntax</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ps-cmmand-syntax/m-p/4749213#M388088</link>
      <description>&amp;gt;ps -help&lt;BR /&gt;&lt;BR /&gt;The correct command for help is: man ps&lt;BR /&gt;&lt;A href="http://h20000.www2.hp.com/bc/docs/support/SupportManual/c02264235/c02264235.pdf" target="_blank"&gt;http://h20000.www2.hp.com/bc/docs/support/SupportManual/c02264235/c02264235.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;To get vsz you need to use -o:&lt;BR /&gt;UNIX95=EXTENDED_PS ps -p PID -opid,vsz,comm&lt;BR /&gt;</description>
      <pubDate>Mon, 07 Feb 2011 08:23:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ps-cmmand-syntax/m-p/4749213#M388088</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-02-07T08:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: ps cmmand syntax</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ps-cmmand-syntax/m-p/4749214#M388089</link>
      <description>the option "-o" is not supported.&lt;BR /&gt;Please advice other ...&lt;BR /&gt;&lt;BR /&gt;/run&amp;gt;ps -eo vsz&lt;BR /&gt;ps: illegal option -- o&lt;BR /&gt;usage: ps [-edaxzflP] [-u ulist] [-g glist] [-p plist] [-t tlist] [-R prmgroup] [-Z psetidlist]&lt;BR /&gt;/run&amp;gt;uname -a&lt;BR /&gt;HP-UX XXXXXX B.11.11 U 9000/800 2311410363 unlimited-user license&lt;BR /&gt;</description>
      <pubDate>Tue, 08 Feb 2011 06:25:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ps-cmmand-syntax/m-p/4749214#M388089</guid>
      <dc:creator>chuikingman</dc:creator>
      <dc:date>2011-02-08T06:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: ps cmmand syntax</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ps-cmmand-syntax/m-p/4749215#M388090</link>
      <description>You need to read Dennis' reply more carefully, and set the environment variable UNIX95.&lt;BR /&gt;If this variable is set a bunch of system commands behave differently (aka XPG4 behavior).&lt;BR /&gt;As for the ps command itself, when run in that environment it will recognise the -o (and further) options (read man ps).&lt;BR /&gt;Because not only the ps command will be affected by a set UNIX95 env var it usually is wise to set UNIX95 only temporarily instead for the whole shell session. That's why Dennis prepended the UNIX95 string to the actual ps command (another way would have been to use the env command, but this would have required a little more typing).&lt;BR /&gt;</description>
      <pubDate>Tue, 08 Feb 2011 07:32:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ps-cmmand-syntax/m-p/4749215#M388090</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2011-02-08T07:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: ps cmmand syntax</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ps-cmmand-syntax/m-p/4749216#M388091</link>
      <description>Ok it work and thankyou &lt;BR /&gt;&lt;BR /&gt;/run&amp;gt;env | grep U&lt;BR /&gt;COLUMNS=80&lt;BR /&gt;UNIX95=EXTENDED_PS&lt;BR /&gt;/gxs20/run&amp;gt;&lt;BR /&gt;&lt;BR /&gt;/run&amp;gt;ps -p 5306 -opid,comm,stime,time,pcpu,state,vsz&lt;BR /&gt;  PID COMMAND            STIME     TIME  %CPU S     VSZ&lt;BR /&gt; 5306 java             Jan 31  02:23:02  2.79 R   51260</description>
      <pubDate>Tue, 08 Feb 2011 08:18:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ps-cmmand-syntax/m-p/4749216#M388091</guid>
      <dc:creator>chuikingman</dc:creator>
      <dc:date>2011-02-08T08:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: ps cmmand syntax</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ps-cmmand-syntax/m-p/4749217#M388092</link>
      <description>&lt;P&gt;&amp;gt;UNIX95=EXTENDED_PS&lt;BR /&gt;&lt;BR /&gt;As mentioned by Ralph, this is probably NOT what you want to do. This causes all sorts of changes in commands that may break your scripts/expectations.&lt;BR /&gt;&lt;BR /&gt;Instead you should do:&lt;BR /&gt;UNIX95=EXTENDED_PS ps -p 5306 -opid,comm,stime,time,pcpu,state,vsz&lt;BR /&gt;&lt;BR /&gt;By setting UNIX95, you have also turned on FIDDLE_WITH_FIND_TIMES:&lt;BR /&gt;&lt;A href="http://h30499.www3.hp.com/t5/System-Administration/need-to-remove-files-older-that-1-day/m-p/4341484#M343630" target="_blank"&gt;http://h30499.www3.hp.com/t5/System-Administration/need-to-remove-files-older-that-1-day/m-p/4341484#M343630&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2011 18:55:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ps-cmmand-syntax/m-p/4749217#M388092</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-08-08T18:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: ps cmmand syntax</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ps-cmmand-syntax/m-p/4749218#M388093</link>
      <description>And to expand on Dennis's answer, do not set the UNIX95 variable in your shell - it will affect too many unrelated processes. You must put the assignment on the same line as ps. That way, the variable only exists during the ps command and disappears when ps is finished. The UNIX95=EXTENDED_PS assignment can be shortened to UNIX95=1 or even UNIX95=. The value is unimportant, just the variable name needs to be defined. So this works too:&lt;BR /&gt; &lt;BR /&gt;UNIX95= ps -p 5306 -opid,comm,stime,time,pcpu,state,vsz&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 09 Feb 2011 01:59:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ps-cmmand-syntax/m-p/4749218#M388093</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2011-02-09T01:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: ps cmmand syntax</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ps-cmmand-syntax/m-p/4749219#M388094</link>
      <description>Of course, it is correct what Bill added,&lt;BR /&gt;and I often myself prefer for the sake of laziness the non-assigning command-scope definition "UNIX= ps ...".&lt;BR /&gt;(Is this correct spelling? I'm never sure about hyphenation in English. Sure, in German we make ample use of hyphens and noun concatenations to form impressive word monsters; e.g. &lt;A href="http://www.crossmyt.com/hc/linghebr/awfgrmlg.html)" target="_blank"&gt;http://www.crossmyt.com/hc/linghebr/awfgrmlg.html)&lt;/A&gt;&lt;BR /&gt;On the other hand, in a script I would rather prefer Dennis' allusive, intuitive and self-explanatory assignment of "UNIX95=EXTENDED_PS ps ...".</description>
      <pubDate>Wed, 09 Feb 2011 07:48:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ps-cmmand-syntax/m-p/4749219#M388094</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2011-02-09T07:48:46Z</dc:date>
    </item>
  </channel>
</rss>

