<?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 Rejecting Control C from Users in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/rejecting-control-c-from-users/m-p/3512899#M218548</link>
    <description>Is there a way to prevent a user from being able to perform a ^C (Control C) to get to a command line?&lt;BR /&gt;&lt;BR /&gt;I am in the process of trying to lock down some user accounts from being able to ^C out of a menu I have created.</description>
    <pubDate>Mon, 28 Mar 2005 15:17:56 GMT</pubDate>
    <dc:creator>David Land</dc:creator>
    <dc:date>2005-03-28T15:17:56Z</dc:date>
    <item>
      <title>Rejecting Control C from Users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rejecting-control-c-from-users/m-p/3512899#M218548</link>
      <description>Is there a way to prevent a user from being able to perform a ^C (Control C) to get to a command line?&lt;BR /&gt;&lt;BR /&gt;I am in the process of trying to lock down some user accounts from being able to ^C out of a menu I have created.</description>
      <pubDate>Mon, 28 Mar 2005 15:17:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rejecting-control-c-from-users/m-p/3512899#M218548</guid>
      <dc:creator>David Land</dc:creator>
      <dc:date>2005-03-28T15:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: Rejecting Control C from Users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rejecting-control-c-from-users/m-p/3512900#M218549</link>
      <description>You can do it like /etc/profile does:&lt;BR /&gt;&lt;BR /&gt;trap "" 1 2 3  # ignore HUP, INT, QUIT now.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Mon, 28 Mar 2005 15:24:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rejecting-control-c-from-users/m-p/3512900#M218549</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2005-03-28T15:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: Rejecting Control C from Users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rejecting-control-c-from-users/m-p/3512901#M218550</link>
      <description>Or trap the ctrlC and do an exit, so it drops them right out.</description>
      <pubDate>Mon, 28 Mar 2005 15:55:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rejecting-control-c-from-users/m-p/3512901#M218550</guid>
      <dc:creator>Tony Scully_2</dc:creator>
      <dc:date>2005-03-28T15:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: Rejecting Control C from Users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rejecting-control-c-from-users/m-p/3512902#M218551</link>
      <description>Completely ignoring all the signals (especially signal 1, called SIGHUP) can leave processes hanging. It is best to detect a hangup or a CTRL-C (and others) and take an action, usually by exiting:&lt;BR /&gt; &lt;BR /&gt;trap "exit" 1 2 3 15&lt;BR /&gt; &lt;BR /&gt;The trap statement says that CTRL-C or a broken connection, etc, will simply exit and if your menu script is the user's login shell, they will be logged out. The trap technique is used in HP's standard /etc/profile.</description>
      <pubDate>Mon, 28 Mar 2005 23:11:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rejecting-control-c-from-users/m-p/3512902#M218551</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2005-03-28T23:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: Rejecting Control C from Users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rejecting-control-c-from-users/m-p/3512903#M218552</link>
      <description>That has helped me out.  Thanks everyone.  Thanks Bill, I will change the trap statement to reflect the 'exit' command.</description>
      <pubDate>Tue, 29 Mar 2005 09:06:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rejecting-control-c-from-users/m-p/3512903#M218552</guid>
      <dc:creator>David Land</dc:creator>
      <dc:date>2005-03-29T09:06:54Z</dc:date>
    </item>
  </channel>
</rss>

