<?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 and sql scripts in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/shell-and-sql-scripts/m-p/3692446#M103090</link>
    <description>Hi Shiv, You can easily get to know by shell's default variable "$?" from any shell. If you are using a shell script, just get the value by # echo $? &lt;BR /&gt;&lt;BR /&gt;-Arun</description>
    <pubDate>Thu, 15 Dec 2005 22:22:42 GMT</pubDate>
    <dc:creator>Arunvijai_4</dc:creator>
    <dc:date>2005-12-15T22:22:42Z</dc:date>
    <item>
      <title>shell and sql scripts</title>
      <link>https://community.hpe.com/t5/operating-system-linux/shell-and-sql-scripts/m-p/3692444#M103088</link>
      <description>Dear Sirs,&lt;BR /&gt;&lt;BR /&gt;How can I pass back the status from sql script to shell script ?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Shiv&lt;BR /&gt;</description>
      <pubDate>Thu, 15 Dec 2005 16:33:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/shell-and-sql-scripts/m-p/3692444#M103088</guid>
      <dc:creator>Shivkumar</dc:creator>
      <dc:date>2005-12-15T16:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: shell and sql scripts</title>
      <link>https://community.hpe.com/t5/operating-system-linux/shell-and-sql-scripts/m-p/3692445#M103089</link>
      <description>Shiv,&lt;BR /&gt;&lt;BR /&gt;Assuming you will be running sql commands within sqlplus, which has an "exit" command that will return a status to the calling environment (be it the command line or a shell script). For example:&lt;BR /&gt;&lt;BR /&gt;=================shellscript===================&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;&lt;BR /&gt;sqlplus -s user/pass@dbname &amp;lt;&lt;EOF&gt;&lt;/EOF&gt;&lt;YOUR sql="" script=""&gt;&lt;/YOUR&gt;.&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;exit &lt;USER specified="" return="" code=""&gt;&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;echo $?&lt;BR /&gt;=============================================&lt;BR /&gt;&lt;BR /&gt;cheers!&lt;/USER&gt;</description>
      <pubDate>Thu, 15 Dec 2005 18:37:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/shell-and-sql-scripts/m-p/3692445#M103089</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2005-12-15T18:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: shell and sql scripts</title>
      <link>https://community.hpe.com/t5/operating-system-linux/shell-and-sql-scripts/m-p/3692446#M103090</link>
      <description>Hi Shiv, You can easily get to know by shell's default variable "$?" from any shell. If you are using a shell script, just get the value by # echo $? &lt;BR /&gt;&lt;BR /&gt;-Arun</description>
      <pubDate>Thu, 15 Dec 2005 22:22:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/shell-and-sql-scripts/m-p/3692446#M103090</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2005-12-15T22:22:42Z</dc:date>
    </item>
  </channel>
</rss>

