<?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: ctl+d or exit not exiting the session in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ctl-d-or-exit-not-exiting-the-session/m-p/4698387#M383768</link>
    <description>Before you exit, type the command:&lt;BR /&gt; &lt;BR /&gt;trap&lt;BR /&gt; &lt;BR /&gt;If you see something like this:&lt;BR /&gt; &lt;BR /&gt;trap -- '' QUIT&lt;BR /&gt;trap -- '' INT&lt;BR /&gt;trap -- '' HUP&lt;BR /&gt; &lt;BR /&gt;then the trap statement at the end of /etc/profile is missing. It should read:&lt;BR /&gt; &lt;BR /&gt;trap 1 2 3&lt;BR /&gt; &lt;BR /&gt;Otherwise, you'll need to take a nettl (or Wireshark/Winpcap) trace of the logoff activity.</description>
    <pubDate>Tue, 12 Oct 2010 23:32:19 GMT</pubDate>
    <dc:creator>Bill Hassell</dc:creator>
    <dc:date>2010-10-12T23:32:19Z</dc:date>
    <item>
      <title>ctl+d or exit not exiting the session</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ctl-d-or-exit-not-exiting-the-session/m-p/4698384#M383765</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I am facing an issue in logout of the HP-UX (11.23) session. If I press ctl+d or run exit command, the login session is not completely terminated. it just hangs and the I need to close the putty session by clickeing on close(X) button. This is leaving the a session on the server. This is happening if I login with NIS user and the same is not happening if I login as local user or root user of the server.&lt;BR /&gt;&lt;BR /&gt;Please assist in resolving the issue.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;</description>
      <pubDate>Tue, 12 Oct 2010 12:24:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ctl-d-or-exit-not-exiting-the-session/m-p/4698384#M383765</guid>
      <dc:creator>sreedhar2u</dc:creator>
      <dc:date>2010-10-12T12:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: ctl+d or exit not exiting the session</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ctl-d-or-exit-not-exiting-the-session/m-p/4698385#M383766</link>
      <description>Hi , &lt;BR /&gt;&lt;BR /&gt;When you use a nis account , what is the home directory of the user ? Is it a local directory ? Is it a remote directory ? How is used nis , only for account authentication ? Or also for use as home server ? &lt;BR /&gt;&lt;BR /&gt;If it's use only for authentication , there is not reason that the log off is different from the login session ( i m not sure of my english :-) ) &lt;BR /&gt;&lt;BR /&gt;Probably nis allow you to access to a remote home server . In this case i guess when you log off your home is yet mounted . That could be explain why the process is hang . &lt;BR /&gt;&lt;BR /&gt;Do you have some mesage in syslog about automunt or mount ? &lt;BR /&gt;&lt;BR /&gt;Regards ,</description>
      <pubDate>Tue, 12 Oct 2010 12:39:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ctl-d-or-exit-not-exiting-the-session/m-p/4698385#M383766</guid>
      <dc:creator>merieux</dc:creator>
      <dc:date>2010-10-12T12:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: ctl+d or exit not exiting the session</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ctl-d-or-exit-not-exiting-the-session/m-p/4698386#M383767</link>
      <description>I suppose your nis users have nfs mounted home dir.&lt;BR /&gt;&lt;BR /&gt;Now,  you probably need to look at mount command result, or dmesg&lt;BR /&gt;&lt;BR /&gt;you may need to take a nettl trace.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 12 Oct 2010 15:20:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ctl-d-or-exit-not-exiting-the-session/m-p/4698386#M383767</guid>
      <dc:creator>Laurent Menase</dc:creator>
      <dc:date>2010-10-12T15:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: ctl+d or exit not exiting the session</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ctl-d-or-exit-not-exiting-the-session/m-p/4698387#M383768</link>
      <description>Before you exit, type the command:&lt;BR /&gt; &lt;BR /&gt;trap&lt;BR /&gt; &lt;BR /&gt;If you see something like this:&lt;BR /&gt; &lt;BR /&gt;trap -- '' QUIT&lt;BR /&gt;trap -- '' INT&lt;BR /&gt;trap -- '' HUP&lt;BR /&gt; &lt;BR /&gt;then the trap statement at the end of /etc/profile is missing. It should read:&lt;BR /&gt; &lt;BR /&gt;trap 1 2 3&lt;BR /&gt; &lt;BR /&gt;Otherwise, you'll need to take a nettl (or Wireshark/Winpcap) trace of the logoff activity.</description>
      <pubDate>Tue, 12 Oct 2010 23:32:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ctl-d-or-exit-not-exiting-the-session/m-p/4698387#M383768</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2010-10-12T23:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: ctl+d or exit not exiting the session</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ctl-d-or-exit-not-exiting-the-session/m-p/4698388#M383769</link>
      <description>I suspect that something is being run as a background job during your session that is not being redirected elsewhere, so that when you exit, the fact that stdio and possibily stdin and stderr are still being used on your terminal is holding you up.&lt;BR /&gt;&lt;BR /&gt;Review your jobs, etc, and make sure that anything left running in the background, or even stopped in the background is either finished before you attempt to exit, OR that those things left running have their input, outputs and error outputs well defined, specifically not defaulting the current login session.&lt;BR /&gt;&lt;BR /&gt;suppose you put a job in the background from your terminal session.&lt;BR /&gt;&lt;BR /&gt;myjob &amp;amp;&lt;BR /&gt;&lt;BR /&gt;myjob is set to read from stdin, output to stdout, and push errors to stderr - even if in side of that command, you've already redirected those io areas.  Because the io of the outer command itself, isn't redirected you would still need to redirect this.&lt;BR /&gt;&lt;BR /&gt;a preferred way would be:&lt;BR /&gt;&lt;BR /&gt;nohup myjob &amp;lt; infile &amp;gt; outfile 2&amp;gt;&amp;amp;1 &amp;amp; &lt;BR /&gt;&lt;BR /&gt;Note: in the above outfile can be /dev/null&lt;BR /&gt;Note: infile can certainly be an empty file, &lt;BR /&gt;or a file with just a linefeed in it, if you think the command needs it.&lt;BR /&gt;Note: if you leave off nohup, then the job will terminate as soon as you logoff, or at least, it should.&lt;BR /&gt;&lt;BR /&gt;Lastly, keep in mind even if it's not a command you've run yourself from the command line, it could be a script that is in your .profile, .kshrc, .cshrc, or any script that can set up your environment, if they aren't well done.  I've seen this in the case where environment vars and subshells spin up based on your machine name, user name, group name, date, data base running on the machine, etc. and a series of shells call subshells that call subshells, etc.</description>
      <pubDate>Wed, 13 Oct 2010 13:41:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ctl-d-or-exit-not-exiting-the-session/m-p/4698388#M383769</guid>
      <dc:creator>TwoProc</dc:creator>
      <dc:date>2010-10-13T13:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: ctl+d or exit not exiting the session</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ctl-d-or-exit-not-exiting-the-session/m-p/4698389#M383770</link>
      <description>&amp;gt;TwoProc: I suspect that something is being run as a background job during your session &lt;BR /&gt;&lt;BR /&gt;You can look for those with:&lt;BR /&gt;UNIX95=EXTENDED_PS ps -H -fu $LOGNAME&lt;BR /&gt;&lt;BR /&gt;The only complication is the above command gives an hierarchical dump for each process tree, if you have logged on more than once.</description>
      <pubDate>Wed, 13 Oct 2010 17:33:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ctl-d-or-exit-not-exiting-the-session/m-p/4698389#M383770</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-10-13T17:33:23Z</dc:date>
    </item>
  </channel>
</rss>

