<?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: Script that kill itself in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-that-kill-itself/m-p/2717962#M721671</link>
    <description>It works !!!&lt;BR /&gt;Thank to all for the help...</description>
    <pubDate>Mon, 06 May 2002 20:31:10 GMT</pubDate>
    <dc:creator>Ricardo Bassoi</dc:creator>
    <dc:date>2002-05-06T20:31:10Z</dc:date>
    <item>
      <title>Script that kill itself</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-that-kill-itself/m-p/2717957#M721666</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;Is there a way to create a script1 that call another one ( script2 ) and after 20 seconds kill both ?&lt;BR /&gt;&lt;BR /&gt;Tks..</description>
      <pubDate>Mon, 06 May 2002 17:36:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-that-kill-itself/m-p/2717957#M721666</guid>
      <dc:creator>Ricardo Bassoi</dc:creator>
      <dc:date>2002-05-06T17:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: Script that kill itself</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-that-kill-itself/m-p/2717958#M721667</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Sure, do launch the second script in the background; note its PID; sleep 20-seconds; issue a 'kill PID'; and exit.  Something like:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;$HOME/script2 &amp;amp;&lt;BR /&gt;PID=$!&lt;BR /&gt;sleep 20&lt;BR /&gt;kill $PID&lt;BR /&gt;exit 0&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 06 May 2002 17:41:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-that-kill-itself/m-p/2717958#M721667</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2002-05-06T17:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: Script that kill itself</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-that-kill-itself/m-p/2717959#M721668</link>
      <description>Hi How about ..&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh &lt;BR /&gt;/home/user/script2 &amp;amp; &lt;BR /&gt;sleep 20 &lt;BR /&gt;pid_var=`ps -ef | grep script2 | grep -v grep | awk '{print $2}'`&lt;BR /&gt;kill -9 $pid_var&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Richard</description>
      <pubDate>Mon, 06 May 2002 17:44:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-that-kill-itself/m-p/2717959#M721668</guid>
      <dc:creator>someone_4</dc:creator>
      <dc:date>2002-05-06T17:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: Script that kill itself</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-that-kill-itself/m-p/2717960#M721669</link>
      <description>Hi Ricardo&lt;BR /&gt;&lt;BR /&gt;try this&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;/home/script1&lt;BR /&gt;/home/script2&lt;BR /&gt;&lt;BR /&gt;A= `ps -ef | grep script1 | grep -v grep | awk '{print $1}'&lt;BR /&gt;B= `ps -ef | grep script2 | grep -v grep | awk'{print $1}'&lt;BR /&gt;C==`ps -ef | grep script1 | grep -v grep | awk '{print $2}'&lt;BR /&gt;&lt;BR /&gt;sleep 20&lt;BR /&gt;&lt;BR /&gt;kill -9 $A $B $C&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;and this should be good to go.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Manoj Srivastava&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 06 May 2002 17:54:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-that-kill-itself/m-p/2717960#M721669</guid>
      <dc:creator>MANOJ SRIVASTAVA</dc:creator>
      <dc:date>2002-05-06T17:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: Script that kill itself</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-that-kill-itself/m-p/2717961#M721670</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Just as another way to do this using a Perl signal handler (among other more traditional methods), please see this thread:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x2c4daf48a9e5d5118ff40090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x2c4daf48a9e5d5118ff40090279cd0f9,00.html&lt;/A&gt;</description>
      <pubDate>Mon, 06 May 2002 17:56:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-that-kill-itself/m-p/2717961#M721670</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-05-06T17:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: Script that kill itself</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-that-kill-itself/m-p/2717962#M721671</link>
      <description>It works !!!&lt;BR /&gt;Thank to all for the help...</description>
      <pubDate>Mon, 06 May 2002 20:31:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-that-kill-itself/m-p/2717962#M721671</guid>
      <dc:creator>Ricardo Bassoi</dc:creator>
      <dc:date>2002-05-06T20:31:10Z</dc:date>
    </item>
  </channel>
</rss>

