<?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 traps with CDE in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/traps-with-cde/m-p/3430384#M859624</link>
    <description>I use a trap in my .profile to empty a logfile when sending the EXIT signal.&lt;BR /&gt;As long as I work in terminal session, it is executing the trap - when I use CDE, it is not executing the trap.&lt;BR /&gt;In the .dtprofile, DTSOURCEPROFILE=true is set.&lt;BR /&gt;Can someone help me to solve this small problem&lt;BR /&gt;Thanks&lt;BR /&gt;Carine</description>
    <pubDate>Thu, 25 Nov 2004 06:13:58 GMT</pubDate>
    <dc:creator>Carine Parmentier</dc:creator>
    <dc:date>2004-11-25T06:13:58Z</dc:date>
    <item>
      <title>traps with CDE</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/traps-with-cde/m-p/3430384#M859624</link>
      <description>I use a trap in my .profile to empty a logfile when sending the EXIT signal.&lt;BR /&gt;As long as I work in terminal session, it is executing the trap - when I use CDE, it is not executing the trap.&lt;BR /&gt;In the .dtprofile, DTSOURCEPROFILE=true is set.&lt;BR /&gt;Can someone help me to solve this small problem&lt;BR /&gt;Thanks&lt;BR /&gt;Carine</description>
      <pubDate>Thu, 25 Nov 2004 06:13:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/traps-with-cde/m-p/3430384#M859624</guid>
      <dc:creator>Carine Parmentier</dc:creator>
      <dc:date>2004-11-25T06:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: traps with CDE</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/traps-with-cde/m-p/3430385#M859625</link>
      <description>1. Be careful that your .profile doesn't contain any terminal specific code such as stty or $TERM. If it does you need to wrap it to protect it from the CDE. &lt;BR /&gt;&lt;BR /&gt;e.g.&lt;BR /&gt;&lt;BR /&gt;if [ ! "$DT" ]&lt;BR /&gt;then&lt;BR /&gt;    term specific stuff like stty etc&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;rest of stuff&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;2. Create a file $HOME/.Xdefaults (if it doesn't already exist). Add a line&lt;BR /&gt;&lt;BR /&gt;*loginShell:TRUE&lt;BR /&gt;&lt;BR /&gt;3. If you get an error on (1) complaining that DT is not set, you might have 'set -u' in your profile. If you do use 'set +u' just before the test and restore it with 'set -u' just after the test.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 26 Nov 2004 10:19:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/traps-with-cde/m-p/3430385#M859625</guid>
      <dc:creator>Stephen Keane</dc:creator>
      <dc:date>2004-11-26T10:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: traps with CDE</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/traps-with-cde/m-p/3430386#M859626</link>
      <description>Better to set the environment variable in the .dtprofile&lt;BR /&gt;&lt;BR /&gt;That way you don't mess up ssh/telnet users when they log onto the system.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Fri, 26 Nov 2004 10:23:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/traps-with-cde/m-p/3430386#M859626</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-11-26T10:23:39Z</dc:date>
    </item>
  </channel>
</rss>

