<?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 Help in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-help/m-p/3805980#M267384</link>
    <description>Hi Ider,&lt;BR /&gt;&lt;BR /&gt;There are some good Nutshell books on script programming that you should take a look at.&lt;BR /&gt;&lt;BR /&gt;A few quick things that might get you started are: &lt;BR /&gt;&lt;BR /&gt;Start script with:&lt;BR /&gt;#!/usr/bin/sh &lt;BR /&gt;&lt;BR /&gt;To run the sql script do something like:&lt;BR /&gt;&lt;BR /&gt;sql "command line login information here" &amp;gt; Output.file 2&amp;gt;&amp;amp;1 &amp;lt;&amp;lt; EOF&lt;BR /&gt;"your sql script here&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;"&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;Now use something like grep or awk to parse the Output.file to detect the errors. You can e-mail error messages by streaming a message to mailx.&lt;BR /&gt;&lt;BR /&gt;echo "my message" | mailx -s "Subject Line" support@xyz.com&lt;BR /&gt;&lt;BR /&gt;Hope that helps get you started.&lt;BR /&gt;</description>
    <pubDate>Wed, 14 Jun 2006 18:00:38 GMT</pubDate>
    <dc:creator>Ken Grabowski</dc:creator>
    <dc:date>2006-06-14T18:00:38Z</dc:date>
    <item>
      <title>Shell Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-help/m-p/3805979#M267383</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have write a shell script where it checks for failed concurrent programs and then if there are any failed conc programs then send an email to support@xyz.com to notify users.&lt;BR /&gt;&lt;BR /&gt;Does any body have a code snippet for doing this.&lt;BR /&gt;&lt;BR /&gt;I have the sql to check for failed processes....&lt;BR /&gt;&lt;BR /&gt;select   b.request_id,&lt;BR /&gt;        a.user_concurrent_program_name,&lt;BR /&gt;        b.actual_start_date,&lt;BR /&gt;        b.oracle_process_id,&lt;BR /&gt;        b.oracle_session_id,&lt;BR /&gt;        b.os_process_id&lt;BR /&gt;        from&lt;BR /&gt;        fnd_concurrent_programs_vl a,&lt;BR /&gt;        fnd_concurrent_requests b,&lt;BR /&gt;        fnd_user c&lt;BR /&gt;        where &lt;BR /&gt;        a.concurrent_program_id=b.concurrent_program_id&lt;BR /&gt;        and a.concurrent_program_id=46020&lt;BR /&gt;        and b.status_code='E'&lt;BR /&gt;/&lt;BR /&gt;</description>
      <pubDate>Wed, 14 Jun 2006 16:45:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-help/m-p/3805979#M267383</guid>
      <dc:creator>Inder_2</dc:creator>
      <dc:date>2006-06-14T16:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Script Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-help/m-p/3805980#M267384</link>
      <description>Hi Ider,&lt;BR /&gt;&lt;BR /&gt;There are some good Nutshell books on script programming that you should take a look at.&lt;BR /&gt;&lt;BR /&gt;A few quick things that might get you started are: &lt;BR /&gt;&lt;BR /&gt;Start script with:&lt;BR /&gt;#!/usr/bin/sh &lt;BR /&gt;&lt;BR /&gt;To run the sql script do something like:&lt;BR /&gt;&lt;BR /&gt;sql "command line login information here" &amp;gt; Output.file 2&amp;gt;&amp;amp;1 &amp;lt;&amp;lt; EOF&lt;BR /&gt;"your sql script here&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;"&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;Now use something like grep or awk to parse the Output.file to detect the errors. You can e-mail error messages by streaming a message to mailx.&lt;BR /&gt;&lt;BR /&gt;echo "my message" | mailx -s "Subject Line" support@xyz.com&lt;BR /&gt;&lt;BR /&gt;Hope that helps get you started.&lt;BR /&gt;</description>
      <pubDate>Wed, 14 Jun 2006 18:00:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-help/m-p/3805980#M267384</guid>
      <dc:creator>Ken Grabowski</dc:creator>
      <dc:date>2006-06-14T18:00:38Z</dc:date>
    </item>
  </channel>
</rss>

