<?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: about exit in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/about-exit/m-p/2669852#M50633</link>
    <description>i know that could use logout instead of exit&lt;BR /&gt;&lt;BR /&gt;however ,steven,can u explain the statement :&lt;BR /&gt;kill -9 `ps -fp $PPID|awk '{print $2}'|tail -1` &lt;BR /&gt;&lt;BR /&gt;i cant understand it exactly&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 22 Feb 2002 05:54:50 GMT</pubDate>
    <dc:creator>thebeatlesguru</dc:creator>
    <dc:date>2002-02-22T05:54:50Z</dc:date>
    <item>
      <title>about exit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-exit/m-p/2669848#M50629</link>
      <description>when i use "exit" in &amp;gt; ,it could exit the system,but if i write a shell script:&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;exit&lt;BR /&gt;&lt;BR /&gt;it could not exit system,so i wanna know what command i can use in shell to exit system,not exit shell&lt;BR /&gt;</description>
      <pubDate>Fri, 22 Feb 2002 05:23:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-exit/m-p/2669848#M50629</guid>
      <dc:creator>thebeatlesguru</dc:creator>
      <dc:date>2002-02-22T05:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: about exit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-exit/m-p/2669849#M50630</link>
      <description>If your shell script is called myexit.sh, try calling it like this:&lt;BR /&gt;. myexit.sh&lt;BR /&gt;rather than just &lt;BR /&gt;myexit.sh&lt;BR /&gt;&lt;BR /&gt;Hope this helps.</description>
      <pubDate>Fri, 22 Feb 2002 05:29:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-exit/m-p/2669849#M50630</guid>
      <dc:creator>Deepak Extross</dc:creator>
      <dc:date>2002-02-22T05:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: about exit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-exit/m-p/2669850#M50631</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Insert the following statement in your script where you want to exit the system:&lt;BR /&gt;&lt;BR /&gt;kill -9 `ps -fp $PPID|awk '{print $2}'|tail -1`&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong</description>
      <pubDate>Fri, 22 Feb 2002 05:34:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-exit/m-p/2669850#M50631</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2002-02-22T05:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: about exit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-exit/m-p/2669851#M50632</link>
      <description>using 'logout' instead of 'exit' should work too.</description>
      <pubDate>Fri, 22 Feb 2002 05:43:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-exit/m-p/2669851#M50632</guid>
      <dc:creator>Deepak Extross</dc:creator>
      <dc:date>2002-02-22T05:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: about exit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-exit/m-p/2669852#M50633</link>
      <description>i know that could use logout instead of exit&lt;BR /&gt;&lt;BR /&gt;however ,steven,can u explain the statement :&lt;BR /&gt;kill -9 `ps -fp $PPID|awk '{print $2}'|tail -1` &lt;BR /&gt;&lt;BR /&gt;i cant understand it exactly&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 22 Feb 2002 05:54:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-exit/m-p/2669852#M50633</guid>
      <dc:creator>thebeatlesguru</dc:creator>
      <dc:date>2002-02-22T05:54:50Z</dc:date>
    </item>
    <item>
      <title>Re: about exit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-exit/m-p/2669853#M50634</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Actually the following is sufficient in your script:&lt;BR /&gt;&lt;BR /&gt;kill -9 $PPID&lt;BR /&gt;&lt;BR /&gt;PPID (parent process id) is PID (process id) of the login shell (parent) spawning off your shell script (child process)&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong</description>
      <pubDate>Fri, 22 Feb 2002 06:00:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-exit/m-p/2669853#M50634</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2002-02-22T06:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: about exit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-exit/m-p/2669854#M50635</link>
      <description>Only root has rights to do this. How can a user do it?</description>
      <pubDate>Fri, 16 Jul 2004 08:32:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-exit/m-p/2669854#M50635</guid>
      <dc:creator>Tom Burba</dc:creator>
      <dc:date>2004-07-16T08:32:01Z</dc:date>
    </item>
  </channel>
</rss>

