<?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>Operating System - HP-UX의 주제 Re: Weird random script hang</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/weird-random-script-hang/m-p/3226142#M893564</link>
    <description>First of all, what system did you initially test it on? and was the other SA testing it on a similar server?&lt;BR /&gt;&lt;BR /&gt;Did you run it as root? or as a user?&lt;BR /&gt;&lt;BR /&gt;Are the OSs the same on each of the servers?&lt;BR /&gt;&lt;BR /&gt;Where does it hang? when it is trying to assess the ttys?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;----------------------------------------------------&lt;BR /&gt;It might be more elegant to use a CASE structure instead of sooo many if/then/else statements...&lt;BR /&gt;&lt;BR /&gt;Seems like a rework is in order.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 22 Mar 2004 16:34:59 GMT</pubDate>
    <dc:creator>Todd McDaniel_1</dc:creator>
    <dc:date>2004-03-22T16:34:59Z</dc:date>
    <item>
      <title>Weird random script hang</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/weird-random-script-hang/m-p/3226141#M893563</link>
      <description>Ok... I'm puzzled. The following script worked fine for me during testing. It hung when a coworker tested it, but, when we ran through it again and another system, it worked. Everything appeared to work properly on the system it hung on too, other than it not exiting. We ran a couple of pilots to customers and one of them experienced the same hanging symptom. They re-ran it and it finished without incident the second time. I'm baffled (either because some systems are just being flaky or I'm totally missing something.) Anyone see anything syntactically that would cause this?</description>
      <pubDate>Mon, 22 Mar 2004 16:07:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/weird-random-script-hang/m-p/3226141#M893563</guid>
      <dc:creator>Jeff_Traigle</dc:creator>
      <dc:date>2004-03-22T16:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: Weird random script hang</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/weird-random-script-hang/m-p/3226142#M893564</link>
      <description>First of all, what system did you initially test it on? and was the other SA testing it on a similar server?&lt;BR /&gt;&lt;BR /&gt;Did you run it as root? or as a user?&lt;BR /&gt;&lt;BR /&gt;Are the OSs the same on each of the servers?&lt;BR /&gt;&lt;BR /&gt;Where does it hang? when it is trying to assess the ttys?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;----------------------------------------------------&lt;BR /&gt;It might be more elegant to use a CASE structure instead of sooo many if/then/else statements...&lt;BR /&gt;&lt;BR /&gt;Seems like a rework is in order.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 22 Mar 2004 16:34:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/weird-random-script-hang/m-p/3226142#M893564</guid>
      <dc:creator>Todd McDaniel_1</dc:creator>
      <dc:date>2004-03-22T16:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: Weird random script hang</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/weird-random-script-hang/m-p/3226143#M893565</link>
      <description>&lt;BR /&gt;Same hardware (all rp2430s)... all at Rel_B.11.00 with same patches.&lt;BR /&gt;&lt;BR /&gt;Definitely run as root. (Script would exit immediately since that's the first thing I check.)&lt;BR /&gt;&lt;BR /&gt;It appears to hang at the very end from what she could tell. I have yet to witness a failure during all the time I was testing during development. According to her, all of the logs indicated it had done everything it was supposed to do... other than it just hung at the very end before exiting and the system didn't reboot.&lt;BR /&gt;&lt;BR /&gt;As for so many if/then/else statements vs. case statements, I don't think it matters much. Nearly all of the if statements are error checking so it would be at least as ugly with "case"s. (Or maybe I just know how to be elegant. :)</description>
      <pubDate>Mon, 22 Mar 2004 16:49:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/weird-random-script-hang/m-p/3226143#M893565</guid>
      <dc:creator>Jeff_Traigle</dc:creator>
      <dc:date>2004-03-22T16:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: Weird random script hang</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/weird-random-script-hang/m-p/3226144#M893566</link>
      <description>elegant = easier to decipher for errors &lt;BR /&gt;&lt;BR /&gt;Elegant may be an overstatement, but CASE statements definintely help imho...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;My thought is this about scripting... &lt;BR /&gt;&lt;BR /&gt;1) make them easy to read&lt;BR /&gt;2) make them Modular so they can be updated easily&lt;BR /&gt;3) Document to help understand what you are doing...6 months later when you cant remember what it was supposed to do. :D&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I might rewrite it with a command script which calls "modules" so you can troubleshoot easier... &lt;BR /&gt;&lt;BR /&gt;Or as you probably have done add echo statements to track where the script is and what it is doing at the moment.</description>
      <pubDate>Mon, 22 Mar 2004 17:12:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/weird-random-script-hang/m-p/3226144#M893566</guid>
      <dc:creator>Todd McDaniel_1</dc:creator>
      <dc:date>2004-03-22T17:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: Weird random script hang</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/weird-random-script-hang/m-p/3226145#M893567</link>
      <description>Might try putting set -x to debug it to see where it hangs.&lt;BR /&gt;See&lt;BR /&gt;&lt;A href="http://docs.hp.com/hpux/onlinedocs/B2355-90046/00/01/117-con.html" target="_blank"&gt;http://docs.hp.com/hpux/onlinedocs/B2355-90046/00/01/117-con.html&lt;/A&gt;&lt;BR /&gt;good luck&lt;BR /&gt;&lt;BR /&gt;fwc</description>
      <pubDate>Mon, 22 Mar 2004 18:12:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/weird-random-script-hang/m-p/3226145#M893567</guid>
      <dc:creator>Floyd Curtis</dc:creator>
      <dc:date>2004-03-22T18:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: Weird random script hang</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/weird-random-script-hang/m-p/3226146#M893568</link>
      <description>I agree with Floyd about putting a set -x in your script.&lt;BR /&gt; &lt;BR /&gt;However, if I were to make a bet, it would be that it is hanging here &lt;BR /&gt; &lt;BR /&gt;/usr/sbin/diag/contrib/pdcinfo &lt;BR /&gt; &lt;BR /&gt;I wouldn't put too much money on it though.</description>
      <pubDate>Tue, 23 Mar 2004 01:40:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/weird-random-script-hang/m-p/3226146#M893568</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2004-03-23T01:40:48Z</dc:date>
    </item>
  </channel>
</rss>

