<?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: why this code core dumps? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/why-this-code-core-dumps/m-p/4160271#M319873</link>
    <description>I don't think it is the code shown which causes a core dump, but rather sonething it &lt;BR /&gt;runs: /opt/HPOV_IPA/bin/ovta_wls.sh &lt;BR /&gt;And in turn that probably does not cause a dump, because shell scripts do not tempt to cause dump. It is probably a program it calls.&lt;BR /&gt;Try debug with print statements or use a first line: &lt;BR /&gt;set -x&lt;BR /&gt;&lt;BR /&gt;Free advice, if you are going to use a piece of string more than once, then please put it in a variable. Otherwise it is way to easy to create spelling/maintenance errors.&lt;BR /&gt;IN the example the string "/opt/HPOV_IPA/bin/ovta_wls.sh" is used 3 times.&lt;BR /&gt;Stick it into a variable. Once.&lt;BR /&gt;For example: &lt;BR /&gt;$ovta_wls_script="/opt/HPOV_IPA/bin/ovta_wls.sh"&lt;BR /&gt;&lt;BR /&gt;Good luck,&lt;BR /&gt;Hein.</description>
    <pubDate>Thu, 13 Mar 2008 00:21:32 GMT</pubDate>
    <dc:creator>Hein van den Heuvel</dc:creator>
    <dc:date>2008-03-13T00:21:32Z</dc:date>
    <item>
      <title>why this code core dumps?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why-this-code-core-dumps/m-p/4160268#M319870</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;#############################################&lt;BR /&gt;if [ -r /opt/HPOV_IPA/bin/ovta_wls.sh ]; then&lt;BR /&gt;      . "/opt/HPOV_IPA/bin/ovta_wls.sh"&lt;BR /&gt;      CLASSPATH="${CLASSPATH}:${OVTA_JAR}"&lt;BR /&gt;      JAVA_OPTIONS="$JAVA_OPTIONS $OVTA_JAVA_OPTIONS"&lt;BR /&gt;      echo $CLASSPATH&lt;BR /&gt;else&lt;BR /&gt;   echo "Sorry, /opt/HPOV_IPA/bin/ovta_wls.sh is not readable, please investigate, bye ..."&lt;BR /&gt;      exit 1&lt;BR /&gt;fi&lt;BR /&gt;#############################################&lt;BR /&gt;can you tell me why this code core dumps and how to avoid?&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Wed, 12 Mar 2008 13:34:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why-this-code-core-dumps/m-p/4160268#M319870</guid>
      <dc:creator>sekar_1</dc:creator>
      <dc:date>2008-03-12T13:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: why this code core dumps?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why-this-code-core-dumps/m-p/4160269#M319871</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;first tipp - comment out some lines and check if the remaining lines work.&lt;BR /&gt;I think here you also need a ':'&lt;BR /&gt;JAVA_OPTIONS="$JAVA_OPTIONS:$OVTA_JAVA_OPTIONS"&lt;BR /&gt;and maybe also the brackets '{' and '}' ?&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;Volkmar&lt;BR /&gt;&lt;BR /&gt;P.S.&lt;BR /&gt;Which shell is it?&lt;BR /&gt;</description>
      <pubDate>Wed, 12 Mar 2008 14:24:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why-this-code-core-dumps/m-p/4160269#M319871</guid>
      <dc:creator>V. Nyga</dc:creator>
      <dc:date>2008-03-12T14:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: why this code core dumps?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why-this-code-core-dumps/m-p/4160270#M319872</link>
      <description>thanks...i will try that and reply.</description>
      <pubDate>Wed, 12 Mar 2008 21:11:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why-this-code-core-dumps/m-p/4160270#M319872</guid>
      <dc:creator>sekar_1</dc:creator>
      <dc:date>2008-03-12T21:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: why this code core dumps?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/why-this-code-core-dumps/m-p/4160271#M319873</link>
      <description>I don't think it is the code shown which causes a core dump, but rather sonething it &lt;BR /&gt;runs: /opt/HPOV_IPA/bin/ovta_wls.sh &lt;BR /&gt;And in turn that probably does not cause a dump, because shell scripts do not tempt to cause dump. It is probably a program it calls.&lt;BR /&gt;Try debug with print statements or use a first line: &lt;BR /&gt;set -x&lt;BR /&gt;&lt;BR /&gt;Free advice, if you are going to use a piece of string more than once, then please put it in a variable. Otherwise it is way to easy to create spelling/maintenance errors.&lt;BR /&gt;IN the example the string "/opt/HPOV_IPA/bin/ovta_wls.sh" is used 3 times.&lt;BR /&gt;Stick it into a variable. Once.&lt;BR /&gt;For example: &lt;BR /&gt;$ovta_wls_script="/opt/HPOV_IPA/bin/ovta_wls.sh"&lt;BR /&gt;&lt;BR /&gt;Good luck,&lt;BR /&gt;Hein.</description>
      <pubDate>Thu, 13 Mar 2008 00:21:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/why-this-code-core-dumps/m-p/4160271#M319873</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2008-03-13T00:21:32Z</dc:date>
    </item>
  </channel>
</rss>

