<?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: Recursion too deep error. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/recursion-too-deep-error/m-p/4764443#M640583</link>
    <description>Hi Dennis,&lt;BR /&gt;&lt;BR /&gt;How can I do that could you pls help me on this.&lt;BR /&gt;&lt;BR /&gt;Raj</description>
    <pubDate>Mon, 21 Mar 2011 02:06:08 GMT</pubDate>
    <dc:creator>raj0105</dc:creator>
    <dc:date>2011-03-21T02:06:08Z</dc:date>
    <item>
      <title>Recursion too deep error.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recursion-too-deep-error/m-p/4764439#M640579</link>
      <description>Hi experts,&lt;BR /&gt;&lt;BR /&gt;I got script to log user keystroke to a file.&lt;BR /&gt;I put that script in /etc/profile.&lt;BR /&gt;Everything works fine but some times while user getting loged in to system it gives error continuously as below.&lt;BR /&gt;"profile[4]: log1: recursion too deep."&lt;BR /&gt;and my script is:&lt;BR /&gt;HISTFILE=$HOME/.sh_history&lt;BR /&gt;export HISTFILE&lt;BR /&gt;ln=`logname`&lt;BR /&gt;lr=`last -R | head -1 | awk '{ print $3}'`&lt;BR /&gt;function log1&lt;BR /&gt;{&lt;BR /&gt;&lt;BR /&gt;xr=$(fc -ln -0 | head -1)&lt;BR /&gt;z=`logger -p local3.info echo "$ln@$lr PWD $PWD $xr"`&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;trap log1 DEBUG&lt;BR /&gt;&lt;BR /&gt;I hope this is happening because same function(log1) getting run multiple times when /etc/profile is getting executed.&lt;BR /&gt;&lt;BR /&gt;Kindly help (Will assign points)&lt;BR /&gt;&lt;BR /&gt;Raj&lt;BR /&gt; &lt;BR /&gt;</description>
      <pubDate>Sat, 12 Mar 2011 16:58:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recursion-too-deep-error/m-p/4764439#M640579</guid>
      <dc:creator>raj0105</dc:creator>
      <dc:date>2011-03-12T16:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: Recursion too deep error.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recursion-too-deep-error/m-p/4764440#M640580</link>
      <description>&amp;gt;I hope this is happening because same function(log1) getting run multiple times&lt;BR /&gt;&lt;BR /&gt;You may have to cancel that trap inside log1. Or put log1 in a separate script.</description>
      <pubDate>Sat, 12 Mar 2011 17:11:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recursion-too-deep-error/m-p/4764440#M640580</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-03-12T17:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: Recursion too deep error.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recursion-too-deep-error/m-p/4764441#M640581</link>
      <description>Hi,&lt;BR /&gt;Thanks for reply.&lt;BR /&gt;&lt;BR /&gt;How could I stop this function kindly help.&lt;BR /&gt;&lt;BR /&gt;But it should run after each key stroke.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Kindly help.&lt;BR /&gt;&lt;BR /&gt;Chandra</description>
      <pubDate>Mon, 14 Mar 2011 10:49:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recursion-too-deep-error/m-p/4764441#M640581</guid>
      <dc:creator>raj0105</dc:creator>
      <dc:date>2011-03-14T10:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: Recursion too deep error.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recursion-too-deep-error/m-p/4764442#M640582</link>
      <description>&amp;gt;How could I stop this function?&lt;BR /&gt;&lt;BR /&gt;Have you tried creating a log1 script instead of a function?</description>
      <pubDate>Mon, 14 Mar 2011 10:58:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recursion-too-deep-error/m-p/4764442#M640582</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-03-14T10:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: Recursion too deep error.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recursion-too-deep-error/m-p/4764443#M640583</link>
      <description>Hi Dennis,&lt;BR /&gt;&lt;BR /&gt;How can I do that could you pls help me on this.&lt;BR /&gt;&lt;BR /&gt;Raj</description>
      <pubDate>Mon, 21 Mar 2011 02:06:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recursion-too-deep-error/m-p/4764443#M640583</guid>
      <dc:creator>raj0105</dc:creator>
      <dc:date>2011-03-21T02:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: Recursion too deep error.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recursion-too-deep-error/m-p/4764444#M640584</link>
      <description>&amp;gt;How can I do that?&lt;BR /&gt;&lt;BR /&gt;That may not help since "trap" is still set.  You could try turning it off in log1.&lt;BR /&gt;&lt;BR /&gt;Otherwise you would need to copy your log1 function to a script called log1, move all variable settings too.  And remove the "function log1 {}" around the body.</description>
      <pubDate>Mon, 21 Mar 2011 12:40:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recursion-too-deep-error/m-p/4764444#M640584</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-03-21T12:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: Recursion too deep error.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recursion-too-deep-error/m-p/4764445#M640585</link>
      <description>HI Dennis,&lt;BR /&gt;&lt;BR /&gt;Thanks again for response.&lt;BR /&gt;&lt;BR /&gt;As per your suggestion I have traped function as script.&lt;BR /&gt;&lt;BR /&gt;At present I have not find any issues.&lt;BR /&gt;&lt;BR /&gt;Let me keep under obeservation this for two weeks.&lt;BR /&gt;&lt;BR /&gt;Raj</description>
      <pubDate>Thu, 31 Mar 2011 01:44:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recursion-too-deep-error/m-p/4764445#M640585</guid>
      <dc:creator>raj0105</dc:creator>
      <dc:date>2011-03-31T01:44:27Z</dc:date>
    </item>
  </channel>
</rss>

