<?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 question in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ps-question/m-p/3183930#M163389</link>
    <description>Alex,&lt;BR /&gt;&lt;BR /&gt;The command "ps -efx" works for me.  Are you getting some sort of error or is the output not what you expect?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
    <pubDate>Thu, 05 Feb 2004 07:46:18 GMT</pubDate>
    <dc:creator>Pete Randall</dc:creator>
    <dc:date>2004-02-05T07:46:18Z</dc:date>
    <item>
      <title>ps question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ps-question/m-p/3183929#M163388</link>
      <description>Hello,&lt;BR /&gt;I'm trying to monitor my oc4j process with ps command. But the monitor (not written by me, and I can't change it) uses ps -ef command, so not all line is shown and it can't see "oc4j" string at the end. The solution is to use ps -efx command. Is there any way to make ps -ef execute with x option?</description>
      <pubDate>Thu, 05 Feb 2004 07:38:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ps-question/m-p/3183929#M163388</guid>
      <dc:creator>Alex Lavrov</dc:creator>
      <dc:date>2004-02-05T07:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: ps question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ps-question/m-p/3183930#M163389</link>
      <description>Alex,&lt;BR /&gt;&lt;BR /&gt;The command "ps -efx" works for me.  Are you getting some sort of error or is the output not what you expect?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Thu, 05 Feb 2004 07:46:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ps-question/m-p/3183930#M163389</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2004-02-05T07:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: ps question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ps-question/m-p/3183931#M163390</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Not sure what you want but you like to replace the ps -ef command used by a monitoring script into ps -efx. I say change the monitoring script.  If you are not allowed to change the script, you can replace /usr/bin/ps with a script that calls the real ps and if -ef are provided autochange -ef in efx. &lt;BR /&gt;mv /usr/bin/ps /usr/bin/realps&lt;BR /&gt;and create a script called ps like this.&lt;BR /&gt;#!/usr/bin/ks&lt;BR /&gt;VARS=$1&lt;BR /&gt;if [ $VARS -eq "-ef" ]&lt;BR /&gt;then &lt;BR /&gt;     /usr/bin/realps -efx&lt;BR /&gt;else&lt;BR /&gt;    /usr/bin/realps $VARS&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;But i think it is better to change the monitoring script.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;&lt;BR /&gt;Gideon&lt;BR /&gt;</description>
      <pubDate>Thu, 05 Feb 2004 07:49:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ps-question/m-p/3183931#M163390</guid>
      <dc:creator>G. Vrijhoeven</dc:creator>
      <dc:date>2004-02-05T07:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: ps question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ps-question/m-p/3183932#M163391</link>
      <description>export UNIX95=1&lt;BR /&gt;&lt;BR /&gt;ps -efx</description>
      <pubDate>Thu, 05 Feb 2004 07:53:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ps-question/m-p/3183932#M163391</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2004-02-05T07:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: ps question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ps-question/m-p/3183933#M163392</link>
      <description>The only way that immediately comes to my mind is to move "ps" to a new name e.g ps.orig and create a script called "ps" which looks a bit like this.&lt;BR /&gt; &lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;[ $1 = "-ef" ] &amp;amp;&amp;amp; EXTRA="x"&lt;BR /&gt;ps.orig ${1}$EXTRA&lt;BR /&gt; &lt;BR /&gt;I though an alias would work but I can't seem to make that work.  &lt;BR /&gt; &lt;BR /&gt;If you only want to do this for the user that this appliaction runs as, rather than renaming "ps" you could precede the users PATH with a directory containing your script and the script would use the full path to "ps".  This means all other users would still use the origianl "ps"</description>
      <pubDate>Thu, 05 Feb 2004 07:54:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ps-question/m-p/3183933#M163392</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2004-02-05T07:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: ps question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ps-question/m-p/3183934#M163393</link>
      <description>ps -efx works fine, it's not the issue.&lt;BR /&gt;The problem is that the monitor uses ps -ef.&lt;BR /&gt;I thought about changing the original ps, but I really prefer not to do this.&lt;BR /&gt;Well, I guess the only option I have is to change the original monitor ...&lt;BR /&gt;&lt;BR /&gt;Thanx all for the help!</description>
      <pubDate>Thu, 05 Feb 2004 08:04:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ps-question/m-p/3183934#M163393</guid>
      <dc:creator>Alex Lavrov</dc:creator>
      <dc:date>2004-02-05T08:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: ps question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ps-question/m-p/3183935#M163394</link>
      <description>In the mean time, you can create your own script (as one example above) in say /usr/local/bin&lt;BR /&gt;before you run the monitor, change the PATH to be :&lt;BR /&gt;export PATH=/usr/local/bin:$PATH&lt;BR /&gt;this will run the "alternate" ps command.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Jean-Luc</description>
      <pubDate>Thu, 05 Feb 2004 08:15:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ps-question/m-p/3183935#M163394</guid>
      <dc:creator>Jean-Luc Oudart</dc:creator>
      <dc:date>2004-02-05T08:15:10Z</dc:date>
    </item>
  </channel>
</rss>

