<?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: New problem with a script well used and tested script.... in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/new-problem-with-a-script-well-used-and-tested-script/m-p/2556029#M887103</link>
    <description>Thanks to all that replied.&lt;BR /&gt;&lt;BR /&gt;I now have things working again.  The problem was with the first script and it was hanging when trying to call the second one.  I've changed the way of calling the second script and all is fine.&lt;BR /&gt;&lt;BR /&gt;Question is - why did it stop working - especially when the script(s) haven't changed?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Jo</description>
    <pubDate>Tue, 24 Jul 2001 19:52:26 GMT</pubDate>
    <dc:creator>Joanne Keegan</dc:creator>
    <dc:date>2001-07-24T19:52:26Z</dc:date>
    <item>
      <title>New problem with a script well used and tested script....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/new-problem-with-a-script-well-used-and-tested-script/m-p/2556024#M887098</link>
      <description>I have an unusual problem with a script that hasn't been modified (I checked it against one that was restored), yet it hangs at a certain point.  This problem started only a few days ago.&lt;BR /&gt;&lt;BR /&gt;The script involved is initiated from another one that shuts down Omniback.  That part goes okay.  The script with the problem hangs.  The code is:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;sleep 2&lt;BR /&gt;if [ -f /var/adm/logs/OBII_split.*`date "+%d"`]&lt;BR /&gt;then&lt;BR /&gt;    if [ ! -f /var/adm/logs/OBII_split.`date "+%y%m%d"` ]&lt;BR /&gt;    then&lt;BR /&gt;        /usr/bin/rm /var/adm/logs/OBII_split.*`date "+%d"`&lt;BR /&gt;    fi&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;##############&lt;BR /&gt;&lt;BR /&gt;It doesn't seem to get past this point, as the next line in the script creates a log file, and this doesn't occur.&lt;BR /&gt;&lt;BR /&gt;We haven't run out of disk space.  Set -x doesn't provide anything meaningful. No new patches have been loaded for a couple of months.&lt;BR /&gt;&lt;BR /&gt;I deleted those lines of code out of the script, it then ran fine.&lt;BR /&gt;&lt;BR /&gt;Why has this happened?  The script definitely has changed, and has been working well for years.  Is there a process limit or something similar I should be looking at?  Any suggestions of what to look at next would be appreciated.&lt;BR /&gt;&lt;BR /&gt;Incase this info helps, we are running HP/UX 11.0 on a K460.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Jo</description>
      <pubDate>Mon, 23 Jul 2001 22:28:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/new-problem-with-a-script-well-used-and-tested-script/m-p/2556024#M887098</guid>
      <dc:creator>Joanne Keegan</dc:creator>
      <dc:date>2001-07-23T22:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: New problem with a script well used and tested script....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/new-problem-with-a-script-well-used-and-tested-script/m-p/2556025#M887099</link>
      <description>I just reread what I submitted.  I made a typo at the end - the script definitely hasn't been changed.&lt;BR /&gt;&lt;BR /&gt;By the way we are running OBII 3.1.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Jo</description>
      <pubDate>Mon, 23 Jul 2001 22:50:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/new-problem-with-a-script-well-used-and-tested-script/m-p/2556025#M887099</guid>
      <dc:creator>Joanne Keegan</dc:creator>
      <dc:date>2001-07-23T22:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: New problem with a script well used and tested script....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/new-problem-with-a-script-well-used-and-tested-script/m-p/2556026#M887100</link>
      <description>What happens if you add a couple of comments in your script, so it looks like:&lt;BR /&gt;&lt;BR /&gt;if ..............&lt;BR /&gt;then&lt;BR /&gt;echo "First if statement"&lt;BR /&gt;if ..........&lt;BR /&gt;then&lt;BR /&gt;echo "Second if statement"&lt;BR /&gt;rm ........&lt;BR /&gt;fi&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;Does it display either echo phrase?</description>
      <pubDate>Tue, 24 Jul 2001 00:21:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/new-problem-with-a-script-well-used-and-tested-script/m-p/2556026#M887100</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2001-07-24T00:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: New problem with a script well used and tested script....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/new-problem-with-a-script-well-used-and-tested-script/m-p/2556027#M887101</link>
      <description>Hi Joanne:&lt;BR /&gt;&lt;BR /&gt;My best guess (and it's only that at this point) is that the rm is hanging because of a corrupt filesystem/directory/directory entry.&lt;BR /&gt;I suggest that you put an echo before the remove and then try to remove the files manually. I think the rm will hang again and you will know the trouble maker file.&lt;BR /&gt;&lt;BR /&gt;Happy hunting, Clay</description>
      <pubDate>Tue, 24 Jul 2001 00:32:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/new-problem-with-a-script-well-used-and-tested-script/m-p/2556027#M887101</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2001-07-24T00:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: New problem with a script well used and tested script....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/new-problem-with-a-script-well-used-and-tested-script/m-p/2556028#M887102</link>
      <description>In addition to the other suggestions, I would try putting an echo statement in the script that calls this one, just before the exit point.  Possibly the calling script is blowing up for some strange reason?&lt;BR /&gt;&lt;BR /&gt;Also, to follow up on Clay's point, have you seen any strange messages in syslog when this script runs?  &lt;BR /&gt;&lt;BR /&gt;JP&lt;BR /&gt;</description>
      <pubDate>Tue, 24 Jul 2001 02:15:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/new-problem-with-a-script-well-used-and-tested-script/m-p/2556028#M887102</guid>
      <dc:creator>John Poff</dc:creator>
      <dc:date>2001-07-24T02:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: New problem with a script well used and tested script....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/new-problem-with-a-script-well-used-and-tested-script/m-p/2556029#M887103</link>
      <description>Thanks to all that replied.&lt;BR /&gt;&lt;BR /&gt;I now have things working again.  The problem was with the first script and it was hanging when trying to call the second one.  I've changed the way of calling the second script and all is fine.&lt;BR /&gt;&lt;BR /&gt;Question is - why did it stop working - especially when the script(s) haven't changed?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Jo</description>
      <pubDate>Tue, 24 Jul 2001 19:52:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/new-problem-with-a-script-well-used-and-tested-script/m-p/2556029#M887103</guid>
      <dc:creator>Joanne Keegan</dc:creator>
      <dc:date>2001-07-24T19:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: New problem with a script well used and tested script....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/new-problem-with-a-script-well-used-and-tested-script/m-p/2556030#M887104</link>
      <description>Hi Joanne,&lt;BR /&gt;&lt;BR /&gt;I feel like we're missing a piece of the puzzle. Generally, a script hangs when it is waiting for input. I'm not sure that we are dealing with a hang or an abort. What was the change you made? Perhaps that might give us a clue. Are you by any chance using remsh?&lt;BR /&gt;&lt;BR /&gt;Clay</description>
      <pubDate>Tue, 24 Jul 2001 19:59:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/new-problem-with-a-script-well-used-and-tested-script/m-p/2556030#M887104</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2001-07-24T19:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: New problem with a script well used and tested script....</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/new-problem-with-a-script-well-used-and-tested-script/m-p/2556031#M887105</link>
      <description>Hello Joanne,&lt;BR /&gt;&lt;BR /&gt;I'm glad you got your script working!&lt;BR /&gt;&lt;BR /&gt;As for the cause, something must have changed somewhere.  I've run into strange problems like that before, and I have even resorted to using a find command on the whole system to find any recently modified files.  Any of the binary executables changed that the scripts call?  Has the kernel had a parameter change and been relinked?  &lt;BR /&gt;&lt;BR /&gt;There are so many things that can change, it can be tough to figure it out sometimes.  If this is the only problem you have, I wouldn't worry about it too much.  But if you keep seeing other things break that haven't changed, you might have to do some detective work.&lt;BR /&gt;&lt;BR /&gt;Have fun!&lt;BR /&gt;&lt;BR /&gt;JP&lt;BR /&gt;</description>
      <pubDate>Tue, 24 Jul 2001 20:06:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/new-problem-with-a-script-well-used-and-tested-script/m-p/2556031#M887105</guid>
      <dc:creator>John Poff</dc:creator>
      <dc:date>2001-07-24T20:06:12Z</dc:date>
    </item>
  </channel>
</rss>

