<?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: how to kill the  user process loging on now? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-kill-the-user-process-loging-on-now/m-p/3251839#M175462</link>
    <description>You can use following command in your script to read the information:&lt;BR /&gt;#who "gives you all users in the system. Get the tty no. of every users."&lt;BR /&gt;#ps -t &lt;TTY no.=""&gt;  "This will list all processes related to that user with their PID's."&lt;BR /&gt;#kill -9 &lt;PID&gt; "kill the particular process."&lt;BR /&gt;&lt;BR /&gt;If you kill the sh process of the user, he gets automatically logged out.&lt;BR /&gt;&lt;BR /&gt;Hope this is sufficient&lt;BR /&gt;&lt;/PID&gt;&lt;/TTY&gt;</description>
    <pubDate>Mon, 19 Apr 2004 04:31:31 GMT</pubDate>
    <dc:creator>Bharat Katkar</dc:creator>
    <dc:date>2004-04-19T04:31:31Z</dc:date>
    <item>
      <title>how to kill the  user process loging on now?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-kill-the-user-process-loging-on-now/m-p/3251837#M175460</link>
      <description>Hi,&lt;BR /&gt;   I want to do a job every day, and at first i must kill all the user process and logout all the user. how can i accomplish this using the shell script?</description>
      <pubDate>Mon, 19 Apr 2004 04:22:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-kill-the-user-process-loging-on-now/m-p/3251837#M175460</guid>
      <dc:creator>常有慈悲心</dc:creator>
      <dc:date>2004-04-19T04:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to kill the  user process loging on now?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-kill-the-user-process-loging-on-now/m-p/3251838#M175461</link>
      <description>You can user fuser commane to achieve this&lt;BR /&gt;&lt;BR /&gt;#fuser -ku /file_system&lt;BR /&gt;&lt;BR /&gt;You must be super user.&lt;BR /&gt;&lt;BR /&gt;sks</description>
      <pubDate>Mon, 19 Apr 2004 04:30:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-kill-the-user-process-loging-on-now/m-p/3251838#M175461</guid>
      <dc:creator>Sanjay Kumar Suri</dc:creator>
      <dc:date>2004-04-19T04:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: how to kill the  user process loging on now?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-kill-the-user-process-loging-on-now/m-p/3251839#M175462</link>
      <description>You can use following command in your script to read the information:&lt;BR /&gt;#who "gives you all users in the system. Get the tty no. of every users."&lt;BR /&gt;#ps -t &lt;TTY no.=""&gt;  "This will list all processes related to that user with their PID's."&lt;BR /&gt;#kill -9 &lt;PID&gt; "kill the particular process."&lt;BR /&gt;&lt;BR /&gt;If you kill the sh process of the user, he gets automatically logged out.&lt;BR /&gt;&lt;BR /&gt;Hope this is sufficient&lt;BR /&gt;&lt;/PID&gt;&lt;/TTY&gt;</description>
      <pubDate>Mon, 19 Apr 2004 04:31:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-kill-the-user-process-loging-on-now/m-p/3251839#M175462</guid>
      <dc:creator>Bharat Katkar</dc:creator>
      <dc:date>2004-04-19T04:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: how to kill the  user process loging on now?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-kill-the-user-process-loging-on-now/m-p/3251840#M175463</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;What type of job is it.&lt;BR /&gt;&lt;BR /&gt;If you are running a database application just killing things is a bad idea.&lt;BR /&gt;&lt;BR /&gt;Also things like lp which is maybe seen as a user does not like being killed.&lt;BR /&gt;&lt;BR /&gt;You would be safer going to runlevel 1 or 2 &lt;BR /&gt;and then running.&lt;BR /&gt;&lt;BR /&gt;             Steve Steel</description>
      <pubDate>Mon, 19 Apr 2004 04:43:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-kill-the-user-process-loging-on-now/m-p/3251840#M175463</guid>
      <dc:creator>Steve Steel</dc:creator>
      <dc:date>2004-04-19T04:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: how to kill the  user process loging on now?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-kill-the-user-process-loging-on-now/m-p/3251841#M175464</link>
      <description>You can also introduce a start script in the directory /sbin/rc2.d directory which will get executed whenever run level changed from 1 to 2 and so on.&lt;BR /&gt;&lt;BR /&gt;sks</description>
      <pubDate>Mon, 19 Apr 2004 04:55:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-kill-the-user-process-loging-on-now/m-p/3251841#M175464</guid>
      <dc:creator>Sanjay Kumar Suri</dc:creator>
      <dc:date>2004-04-19T04:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: how to kill the  user process loging on now?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-kill-the-user-process-loging-on-now/m-p/3251842#M175465</link>
      <description>who -u |awk '{print "kill -9",$7}' |ksh&lt;BR /&gt;&lt;BR /&gt;Modify it for u'r use&lt;BR /&gt;&lt;BR /&gt;Kaps</description>
      <pubDate>Mon, 19 Apr 2004 05:04:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-kill-the-user-process-loging-on-now/m-p/3251842#M175465</guid>
      <dc:creator>KapilRaj</dc:creator>
      <dc:date>2004-04-19T05:04:19Z</dc:date>
    </item>
  </channel>
</rss>

