<?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: &amp;lt;ctrl&amp;gt;d and 'exit' difference? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/lt-ctrl-gt-d-and-exit-difference/m-p/2916975#M934147</link>
    <description>Hi Myles,&lt;BR /&gt;&lt;BR /&gt;This happens when the shell has the ignoreeof option set.&lt;BR /&gt;&lt;BR /&gt;Rgds, Robin</description>
    <pubDate>Mon, 03 Mar 2003 13:46:16 GMT</pubDate>
    <dc:creator>Robin Wakefield</dc:creator>
    <dc:date>2003-03-03T13:46:16Z</dc:date>
    <item>
      <title>&lt;ctrl&gt;d and 'exit' difference?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lt-ctrl-gt-d-and-exit-difference/m-p/2916973#M934145</link>
      <description>When logging out of some user shells I find that when I use &lt;CTRL&gt;d I get a message saying something like "Use 'exit' to log out". Why would this be? What is the difference between using &lt;CTRL&gt;d and 'exit' when logging out?&lt;BR /&gt;&lt;BR /&gt;-Myles&lt;/CTRL&gt;&lt;/CTRL&gt;</description>
      <pubDate>Mon, 03 Mar 2003 13:28:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lt-ctrl-gt-d-and-exit-difference/m-p/2916973#M934145</guid>
      <dc:creator>Myles McManus</dc:creator>
      <dc:date>2003-03-03T13:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: &lt;ctrl&gt;d and 'exit' difference?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lt-ctrl-gt-d-and-exit-difference/m-p/2916974#M934146</link>
      <description>Control "D" is an abort command used when communication sessions are not responding.  I believe it sends a SIGHUP or SIGKILL signal but I'll have to double check.&lt;BR /&gt;&lt;BR /&gt;Exit is the gracefull way and you always go graceful whenever possible.</description>
      <pubDate>Mon, 03 Mar 2003 13:33:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lt-ctrl-gt-d-and-exit-difference/m-p/2916974#M934146</guid>
      <dc:creator>Michael Steele_2</dc:creator>
      <dc:date>2003-03-03T13:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: &lt;ctrl&gt;d and 'exit' difference?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lt-ctrl-gt-d-and-exit-difference/m-p/2916975#M934147</link>
      <description>Hi Myles,&lt;BR /&gt;&lt;BR /&gt;This happens when the shell has the ignoreeof option set.&lt;BR /&gt;&lt;BR /&gt;Rgds, Robin</description>
      <pubDate>Mon, 03 Mar 2003 13:46:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lt-ctrl-gt-d-and-exit-difference/m-p/2916975#M934147</guid>
      <dc:creator>Robin Wakefield</dc:creator>
      <dc:date>2003-03-03T13:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: &lt;ctrl&gt;d and 'exit' difference?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lt-ctrl-gt-d-and-exit-difference/m-p/2916976#M934148</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Ctrl-D is a stty definition (options for a terminal port), pls check these optios by:&lt;BR /&gt;#stty -a&lt;BR /&gt;&lt;BR /&gt;Whenever you want it you can change this assignment. i.e: if you change your "eof" definition to Ctrl-X just do:&lt;BR /&gt;#stty intr '^X'&lt;BR /&gt;So, when you check the new "intr" value you will se:&lt;BR /&gt;#stty -a&lt;BR /&gt;eof = ^x; etc, etc...&lt;BR /&gt;&lt;BR /&gt;Pls chk "man stty" for more detailed info.&lt;BR /&gt;&lt;BR /&gt;Rgds.</description>
      <pubDate>Mon, 03 Mar 2003 14:36:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lt-ctrl-gt-d-and-exit-difference/m-p/2916976#M934148</guid>
      <dc:creator>Jose Mosquera</dc:creator>
      <dc:date>2003-03-03T14:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: &lt;ctrl&gt;d and 'exit' difference?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lt-ctrl-gt-d-and-exit-difference/m-p/2916977#M934149</link>
      <description>The &lt;CTRL&gt; d dates back to the 'bad old days' when the user interfaces were all teletype terminals.  These didn't have keys such as the F1-F12, page up, page down, arrows, or several others.  Teletypes had a &lt;CTRL&gt; key and an &lt;ESC&gt; key, and that was about it. To return the carriage, the user pressed &lt;CTRL&gt; m.  To feed a line, the user pressed &lt;CTRL&gt; l.  &lt;BR /&gt;&lt;BR /&gt;By convention, &lt;CTRL&gt; a was how to send a (binary) 00000001 (decimal 1), &lt;CTRL&gt; b send 00000010 decimal 2), &lt;CTRL&gt; c sent 00000011 (decimal 3), and &lt;CTRL&gt; &lt;D&gt; sent 000000100 (decimal 4). This held true for the entire alphabet.  &lt;BR /&gt;&lt;BR /&gt;Certain conventions developed: Decimal 1 was an attempt by a sender to signal a recipient.  Decimal 3 was a signal that interuppted a message, and decimal 4 marked the end of the message.  These rules generally hold true today.  The &lt;CTRL&gt; d usually marks the end of a file or transmission.  When you press the &lt;CTRL&gt; d during a shell session, the shell terminates.  This can be changed with the ignoreeof option in the .profile.  That requires you to type the word "exit" instead of the &lt;CTRL&gt; d.  This option is there for people who display a lot of binary to their terminal, where a binary 00000100 might accidently appear.&lt;BR /&gt;&lt;BR /&gt;Frankly, I don't see a lot of need for it these days.  I prefer to &lt;CTRL&gt; d rather than type "exit" and &lt;RETURN&gt;, but then I'm lazy.  You can get a list of the pertinent signals with "man signal" and "man kill".  &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Chris&lt;/RETURN&gt;&lt;/CTRL&gt;&lt;/CTRL&gt;&lt;/CTRL&gt;&lt;/CTRL&gt;&lt;/D&gt;&lt;/CTRL&gt;&lt;/CTRL&gt;&lt;/CTRL&gt;&lt;/CTRL&gt;&lt;/CTRL&gt;&lt;/CTRL&gt;&lt;/ESC&gt;&lt;/CTRL&gt;&lt;/CTRL&gt;</description>
      <pubDate>Mon, 03 Mar 2003 17:08:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lt-ctrl-gt-d-and-exit-difference/m-p/2916977#M934149</guid>
      <dc:creator>Chris Vail</dc:creator>
      <dc:date>2003-03-03T17:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: &lt;ctrl&gt;d and 'exit' difference?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lt-ctrl-gt-d-and-exit-difference/m-p/2916978#M934150</link>
      <description>control D ^D is (End of Transmission) in the ASCII Character Set. After logging in My stty settings sets ^D as (End of File) eof.  &lt;BR /&gt;&lt;BR /&gt;If you are getting a text message telling you to type exit.  It sounds like your shell is trapping the signal and telling you to use "exit" instead.&lt;BR /&gt;  trap 'echo  "use exit to logout"'  4 &lt;BR /&gt;(like the .profile) Looks like someone is trying to exit cleanly from some kind process</description>
      <pubDate>Tue, 04 Mar 2003 17:26:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lt-ctrl-gt-d-and-exit-difference/m-p/2916978#M934150</guid>
      <dc:creator>Rory R Hammond</dc:creator>
      <dc:date>2003-03-04T17:26:38Z</dc:date>
    </item>
  </channel>
</rss>

