<?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: debug in a script function in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/debug-in-a-script-function/m-p/5164048#M456809</link>
    <description>put a set -x inside the function.&lt;BR /&gt;&lt;BR /&gt;MI_FUNC ()   {&lt;BR /&gt;set -x&lt;BR /&gt;echo "lol"&lt;BR /&gt;}</description>
    <pubDate>Tue, 17 Mar 2009 13:06:55 GMT</pubDate>
    <dc:creator>likid0</dc:creator>
    <dc:date>2009-03-17T13:06:55Z</dc:date>
    <item>
      <title>debug in a script function</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/debug-in-a-script-function/m-p/5164047#M456808</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;I want to execute a script with ksh -x &amp;lt;script&amp;gt; so I can see the output of the commands however I would like to display what is happening with the functions of the script ....&lt;BR /&gt;&lt;BR /&gt;does anyone know the syntax?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Chris</description>
      <pubDate>Tue, 17 Mar 2009 13:03:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/debug-in-a-script-function/m-p/5164047#M456808</guid>
      <dc:creator>lawrenzo_1</dc:creator>
      <dc:date>2009-03-17T13:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: debug in a script function</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/debug-in-a-script-function/m-p/5164048#M456809</link>
      <description>put a set -x inside the function.&lt;BR /&gt;&lt;BR /&gt;MI_FUNC ()   {&lt;BR /&gt;set -x&lt;BR /&gt;echo "lol"&lt;BR /&gt;}</description>
      <pubDate>Tue, 17 Mar 2009 13:06:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/debug-in-a-script-function/m-p/5164048#M456809</guid>
      <dc:creator>likid0</dc:creator>
      <dc:date>2009-03-17T13:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: debug in a script function</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/debug-in-a-script-function/m-p/5164049#M456810</link>
      <description>the problem I have with that is the function is a check function ie&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Check_Func () {&lt;BR /&gt;&lt;BR /&gt;   [[ $? -ne 0 ]] &amp;amp;&amp;amp; alert&lt;BR /&gt;&lt;BR /&gt;} &lt;BR /&gt;&lt;BR /&gt;if I put the set -x in then $? always = 0&lt;BR /&gt;&lt;BR /&gt;:-(&lt;BR /&gt;&lt;BR /&gt;Thanks all the same.</description>
      <pubDate>Tue, 17 Mar 2009 13:22:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/debug-in-a-script-function/m-p/5164049#M456810</guid>
      <dc:creator>lawrenzo_1</dc:creator>
      <dc:date>2009-03-17T13:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: debug in a script function</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/debug-in-a-script-function/m-p/5164050#M456811</link>
      <description>&lt;!--!*#--&gt;Hi Chris:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; if I put the set -x in then $? always = 0&lt;BR /&gt;&lt;BR /&gt;So do this:&lt;BR /&gt;&lt;BR /&gt;Check_Func () {&lt;BR /&gt;    typeset RC=$?&lt;BR /&gt;    set -x&lt;BR /&gt;    echo "I saw RC=${RC}"&lt;BR /&gt;    ...&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Mar 2009 13:30:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/debug-in-a-script-function/m-p/5164050#M456811</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-03-17T13:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: debug in a script function</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/debug-in-a-script-function/m-p/5164051#M456812</link>
      <description>ah yes I suppose there is always that !&lt;BR /&gt;&lt;BR /&gt;Thanks James&lt;BR /&gt;&lt;BR /&gt;Chris</description>
      <pubDate>Tue, 17 Mar 2009 14:01:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/debug-in-a-script-function/m-p/5164051#M456812</guid>
      <dc:creator>lawrenzo_1</dc:creator>
      <dc:date>2009-03-17T14:01:36Z</dc:date>
    </item>
  </channel>
</rss>

