<?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 Idle or process running in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/idle-or-process-running/m-p/2714879#M61527</link>
    <description>I want to identify whether a terminal is sitting idle or a process is running on the terminal . (both shows idle times when using "w" command)&lt;BR /&gt;Please someone help its urgent!!!</description>
    <pubDate>Wed, 01 May 2002 14:15:35 GMT</pubDate>
    <dc:creator>Suvadip De</dc:creator>
    <dc:date>2002-05-01T14:15:35Z</dc:date>
    <item>
      <title>Idle or process running</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/idle-or-process-running/m-p/2714879#M61527</link>
      <description>I want to identify whether a terminal is sitting idle or a process is running on the terminal . (both shows idle times when using "w" command)&lt;BR /&gt;Please someone help its urgent!!!</description>
      <pubDate>Wed, 01 May 2002 14:15:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/idle-or-process-running/m-p/2714879#M61527</guid>
      <dc:creator>Suvadip De</dc:creator>
      <dc:date>2002-05-01T14:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: Idle or process running</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/idle-or-process-running/m-p/2714880#M61528</link>
      <description>Hi Suvadip,&lt;BR /&gt;&lt;BR /&gt; There will always be some processes running even when the system is "isle".&lt;BR /&gt;&lt;BR /&gt;What you need to do is list the processes &amp;amp; search for the process in question. If you know the process_name then do&lt;BR /&gt;&lt;BR /&gt;ps -ef | grep process_name&lt;BR /&gt;&lt;BR /&gt;If you don't know the process name but do know the username then do&lt;BR /&gt;&lt;BR /&gt;ps -ef | grep username&lt;BR /&gt;&lt;BR /&gt;This will list all processes started by username.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Jeff</description>
      <pubDate>Wed, 01 May 2002 14:20:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/idle-or-process-running/m-p/2714880#M61528</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2002-05-01T14:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: Idle or process running</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/idle-or-process-running/m-p/2714881#M61529</link>
      <description>Hi Suvadip:&lt;BR /&gt;&lt;BR /&gt;Try these commands:&lt;BR /&gt;&lt;BR /&gt;# ps -aef | grep term_name&lt;BR /&gt;# whodo&lt;BR /&gt;# gpm&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Shiju</description>
      <pubDate>Wed, 01 May 2002 14:21:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/idle-or-process-running/m-p/2714881#M61529</guid>
      <dc:creator>Helen French</dc:creator>
      <dc:date>2002-05-01T14:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: Idle or process running</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/idle-or-process-running/m-p/2714882#M61530</link>
      <description>Hi. I agree.  Run the following:&lt;BR /&gt;ps -t tty?? (for tty in question to get user)&lt;BR /&gt;ps -eaf | grep &lt;USER&gt; (to get main PID)&lt;BR /&gt;ps -eaf | grep &lt;MAIN pid=""&gt; (to get other processes spawned &amp;amp; time active)&lt;/MAIN&gt;&lt;/USER&gt;</description>
      <pubDate>Wed, 01 May 2002 14:24:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/idle-or-process-running/m-p/2714882#M61530</guid>
      <dc:creator>Jeffrey Davis_1</dc:creator>
      <dc:date>2002-05-01T14:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: Idle or process running</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/idle-or-process-running/m-p/2714883#M61531</link>
      <description>If you want to log them off after some period of inactivity, providing they are sitting at a shell prompt, put this in the .profile:&lt;BR /&gt;&lt;BR /&gt;readonly TMOUT=300&lt;BR /&gt;&lt;BR /&gt;after 5 minutes of inactivity at a SHELL prompt ONLY, it will log them out!&lt;BR /&gt;&lt;BR /&gt;If they are using anything, like vi, emacs, piping output to more, whatever, they will not be logged out.&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Wed, 01 May 2002 14:25:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/idle-or-process-running/m-p/2714883#M61531</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-05-01T14:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: Idle or process running</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/idle-or-process-running/m-p/2714884#M61532</link>
      <description>Processes and terminal (tty connections) do not necessarily go together. An idle terminal may be a shell waiting for command from the user, which consumes no CPU time. The user may have started several background processes and then logged out which means that the processes are no longer associated with a terminal connection.&lt;BR /&gt;&lt;BR /&gt;So the problem is more complicated than the simple w command can handle.  Instead, you'll want to look at processes owned by each user, something like this:&lt;BR /&gt;&lt;BR /&gt;UNIX95= ps -e -o time,ruser,args | sort -r | more&lt;BR /&gt;&lt;BR /&gt;which sorts all the processes by amount of time accumulated.  Or you could:&lt;BR /&gt;&lt;BR /&gt;UNIX95= ps -e -o time,ruser,args | grep -v root | sort -r | more&lt;BR /&gt;&lt;BR /&gt;to get rid of all the root processes.  Or you could summarize by each user:&lt;BR /&gt;&lt;BR /&gt;UNIX95= ps -e -o time,ruser,args | grep -v root | sort -r | more&lt;BR /&gt;&lt;BR /&gt;Now, knowing which user is accumulating lots of time is not necessarily the best way to eliminate a performance issue unless there is a runaway program...but then it would pop to the top of the above lists.&lt;BR /&gt;</description>
      <pubDate>Wed, 01 May 2002 15:19:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/idle-or-process-running/m-p/2714884#M61532</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2002-05-01T15:19:15Z</dc:date>
    </item>
  </channel>
</rss>

