<?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 ksh command sqlplus and timeout in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-command-sqlplus-and-timeout/m-p/5273970#M656708</link>
    <description>Hi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;huh I'm probably turning around the solution. &lt;BR /&gt;&lt;BR /&gt;Here my draft (of course it doesn't works)&lt;BR /&gt;&lt;BR /&gt;spout="$(&lt;BR /&gt;&lt;BR /&gt;$ORACLE_HOME/bin/sqlplus -silent "/ as sysdba" &amp;lt;&amp;lt; EOF &amp;amp;&lt;BR /&gt;set echo off feedb off head off&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;connect test/test&lt;BR /&gt;&lt;BR /&gt;/&lt;BR /&gt;&lt;BR /&gt;exit success&lt;BR /&gt;EOF&lt;BR /&gt;sleep 4&lt;BR /&gt;kill %% 2&amp;gt;&amp;amp;1&lt;BR /&gt;)"&lt;BR /&gt;&lt;BR /&gt;IN fact, i want to run this command and terminate after 5 seconds whatever is finished or not. (because sometime if instance not available cionnection is hanging)&lt;BR /&gt;&lt;BR /&gt;Could you help me to find the good key. I'm not too far .... &lt;BR /&gt;&lt;BR /&gt;Bests regards&lt;BR /&gt;Den.</description>
    <pubDate>Tue, 15 Feb 2011 19:44:45 GMT</pubDate>
    <dc:creator>Leo The Cat</dc:creator>
    <dc:date>2011-02-15T19:44:45Z</dc:date>
    <item>
      <title>ksh command sqlplus and timeout</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-command-sqlplus-and-timeout/m-p/5273970#M656708</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;huh I'm probably turning around the solution. &lt;BR /&gt;&lt;BR /&gt;Here my draft (of course it doesn't works)&lt;BR /&gt;&lt;BR /&gt;spout="$(&lt;BR /&gt;&lt;BR /&gt;$ORACLE_HOME/bin/sqlplus -silent "/ as sysdba" &amp;lt;&amp;lt; EOF &amp;amp;&lt;BR /&gt;set echo off feedb off head off&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;connect test/test&lt;BR /&gt;&lt;BR /&gt;/&lt;BR /&gt;&lt;BR /&gt;exit success&lt;BR /&gt;EOF&lt;BR /&gt;sleep 4&lt;BR /&gt;kill %% 2&amp;gt;&amp;amp;1&lt;BR /&gt;)"&lt;BR /&gt;&lt;BR /&gt;IN fact, i want to run this command and terminate after 5 seconds whatever is finished or not. (because sometime if instance not available cionnection is hanging)&lt;BR /&gt;&lt;BR /&gt;Could you help me to find the good key. I'm not too far .... &lt;BR /&gt;&lt;BR /&gt;Bests regards&lt;BR /&gt;Den.</description>
      <pubDate>Tue, 15 Feb 2011 19:44:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-command-sqlplus-and-timeout/m-p/5273970#M656708</guid>
      <dc:creator>Leo The Cat</dc:creator>
      <dc:date>2011-02-15T19:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: ksh command sqlplus and timeout</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-command-sqlplus-and-timeout/m-p/5273971#M656709</link>
      <description>&lt;!--!*#--&gt;Hi Den:&lt;BR /&gt;&lt;BR /&gt;You could do:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;function worker {&lt;BR /&gt;    spout="$( ...&lt;BR /&gt;    ...&lt;BR /&gt;EOF&lt;BR /&gt;)&lt;BR /&gt;}&lt;BR /&gt;worker &amp;amp;&lt;BR /&gt;WORKER_PID=$!&lt;BR /&gt;sleep 5&lt;BR /&gt;kill ${WORKER_PID} 2&amp;gt;/dev/null&lt;BR /&gt;exit 0&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;kill</description>
      <pubDate>Tue, 15 Feb 2011 22:16:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-command-sqlplus-and-timeout/m-p/5273971#M656709</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2011-02-15T22:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: ksh command sqlplus and timeout</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-command-sqlplus-and-timeout/m-p/5273972#M656710</link>
      <description>Hi James &lt;BR /&gt;&lt;BR /&gt;Of course the trick with a function. It's the key !&lt;BR /&gt;&lt;BR /&gt;Excellent&lt;BR /&gt;Thanks a lot.&lt;BR /&gt;&lt;BR /&gt;Bests Regards&lt;BR /&gt;Den</description>
      <pubDate>Wed, 16 Feb 2011 21:24:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-command-sqlplus-and-timeout/m-p/5273972#M656710</guid>
      <dc:creator>Leo The Cat</dc:creator>
      <dc:date>2011-02-16T21:24:15Z</dc:date>
    </item>
  </channel>
</rss>

