<?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: Shell script with &amp;quot;kill&amp;quot; ends script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-with-quot-kill-quot-ends-script/m-p/4911231#M702935</link>
    <description>see above</description>
    <pubDate>Mon, 11 Jul 2005 11:54:21 GMT</pubDate>
    <dc:creator>Coolmar</dc:creator>
    <dc:date>2005-07-11T11:54:21Z</dc:date>
    <item>
      <title>Shell script with "kill" ends script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-with-quot-kill-quot-ends-script/m-p/4911225#M702929</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I am just writing a simple little script that will stop omniback, kill any rogue omniback/DP processes and then start it back up again.  The problem is that the whole script seems to exit after the "kills" and won't run the /sbin/init.d/omni start process.  Any ideas?&lt;BR /&gt;&lt;BR /&gt;Thanks!</description>
      <pubDate>Thu, 07 Jul 2005 15:00:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-with-quot-kill-quot-ends-script/m-p/4911225#M702929</guid>
      <dc:creator>Coolmar</dc:creator>
      <dc:date>2005-07-07T15:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script with "kill" ends script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-with-quot-kill-quot-ends-script/m-p/4911226#M702930</link>
      <description>Without seeing your script, I'll have to use "The Force". You may be killing the parent process especially if this is some sort of post-exec process. Frankly, I've never had to kill "rogue" omniback processes on well-patched versions of OB2/DP unless there were some sort of hardware failures.&lt;BR /&gt;&lt;BR /&gt;If this were me, I would first look for and apply the latest OB2/DP patches and push them to all the clients. If the problem persists, I would detach your script from any connection with OB2/DP processes by letting your post-exec issue an "at" job and then let the post-exec exit.&lt;BR /&gt;&lt;BR /&gt;Something like this in your post-exec:&lt;BR /&gt;&lt;BR /&gt;at -f /opt/omni/lbin/clean_n_fixup.sh now + 3 minutes&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 07 Jul 2005 15:08:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-with-quot-kill-quot-ends-script/m-p/4911226#M702930</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-07-07T15:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script with "kill" ends script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-with-quot-kill-quot-ends-script/m-p/4911227#M702931</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have got this kind of behavior when I kill a son process of the shell script with kill -9.&lt;BR /&gt;I wonder if you could try a less hard method like kill -3?&lt;BR /&gt;&lt;BR /&gt;greetings,&lt;BR /&gt;&lt;BR /&gt;Michael&lt;BR /&gt;</description>
      <pubDate>Thu, 07 Jul 2005 16:12:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-with-quot-kill-quot-ends-script/m-p/4911227#M702931</guid>
      <dc:creator>Michael Schulte zur Sur</dc:creator>
      <dc:date>2005-07-07T16:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script with "kill" ends script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-with-quot-kill-quot-ends-script/m-p/4911228#M702932</link>
      <description>I shouldn't overlook the obvious. Depending upon how you are searching for and excluding PID's (or not excluding them), your script may be doing exactly what it's being told to do and issueing a kill to itself.</description>
      <pubDate>Thu, 07 Jul 2005 16:16:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-with-quot-kill-quot-ends-script/m-p/4911228#M702932</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-07-07T16:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script with "kill" ends script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-with-quot-kill-quot-ends-script/m-p/4911229#M702933</link>
      <description>DOH!  I can't believe I did that.&lt;BR /&gt;&lt;BR /&gt;Thanks Clay!&lt;BR /&gt;Sally</description>
      <pubDate>Thu, 07 Jul 2005 16:30:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-with-quot-kill-quot-ends-script/m-p/4911229#M702933</guid>
      <dc:creator>Coolmar</dc:creator>
      <dc:date>2005-07-07T16:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script with "kill" ends script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-with-quot-kill-quot-ends-script/m-p/4911230#M702934</link>
      <description>Hi Sally,&lt;BR /&gt;&lt;BR /&gt;Another command exists to stop omniback : omnisv -stop. So try the following lines.&lt;BR /&gt;&lt;BR /&gt;omnisv -stop&lt;BR /&gt;kill -9 `ps -ef | sed -n '/omni/p' | sed -e '/sed/d' | awk '{print $2}' | xargs`&lt;BR /&gt;omnisv -start&lt;BR /&gt;&lt;BR /&gt;I hope it's what you search !&lt;BR /&gt;&lt;BR /&gt;Roland</description>
      <pubDate>Fri, 08 Jul 2005 06:41:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-with-quot-kill-quot-ends-script/m-p/4911230#M702934</guid>
      <dc:creator>Roland Piette</dc:creator>
      <dc:date>2005-07-08T06:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script with "kill" ends script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-with-quot-kill-quot-ends-script/m-p/4911231#M702935</link>
      <description>see above</description>
      <pubDate>Mon, 11 Jul 2005 11:54:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-with-quot-kill-quot-ends-script/m-p/4911231#M702935</guid>
      <dc:creator>Coolmar</dc:creator>
      <dc:date>2005-07-11T11:54:21Z</dc:date>
    </item>
  </channel>
</rss>

