<?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: How to get output of sql script in mail? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-output-of-sql-script-in-mail/m-p/4951429#M413610</link>
    <description>SHALOM,&lt;BR /&gt;&lt;BR /&gt;Thanks to everyone who were participated in this thread.  The issue is resolved.</description>
    <pubDate>Wed, 11 Jan 2006 23:45:53 GMT</pubDate>
    <dc:creator>Deepu Chakravarty</dc:creator>
    <dc:date>2006-01-11T23:45:53Z</dc:date>
    <item>
      <title>How to get output of sql script in mail?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-output-of-sql-script-in-mail/m-p/4951422#M413603</link>
      <description>I have setup unix sendmail in HP-UX 11.11 box. I can send Mail from my unix box to smtp mail login id (NT box)(through .forward file)successfully. Now my requirement is as follows:&lt;BR /&gt;1. I need output of my selected oracle sql scripts in my smtp mail login id.&lt;BR /&gt;This oracle script can be run with cron job in the unix box and output should be mailed to my smtp mail login id.&lt;BR /&gt;Help is required to setup this requirement.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.</description>
      <pubDate>Wed, 11 Jan 2006 01:31:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-output-of-sql-script-in-mail/m-p/4951422#M413603</guid>
      <dc:creator>Deepu Chakravarty</dc:creator>
      <dc:date>2006-01-11T01:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to get output of sql script in mail?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-output-of-sql-script-in-mail/m-p/4951423#M413604</link>
      <description>Execute the sql scripts and pipe into smtp mail login id.&lt;BR /&gt;&lt;BR /&gt;./sqlscript | mailx -s "SQL output" mailId&lt;BR /&gt;&lt;BR /&gt;it will do that.&lt;BR /&gt;&lt;BR /&gt;Else redirect sql script execution results to a log file as,&lt;BR /&gt;&lt;BR /&gt;$ ./sqlscript 1&amp;gt;/tmp/sql.log 2&amp;gt;&amp;amp;1&lt;BR /&gt;$ mailx -s "SQL Output" mailID &amp;lt; /tmp/sql.log&lt;BR /&gt;&lt;BR /&gt;--&lt;BR /&gt;Muthu</description>
      <pubDate>Wed, 11 Jan 2006 01:34:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-output-of-sql-script-in-mail/m-p/4951423#M413604</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2006-01-11T01:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to get output of sql script in mail?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-output-of-sql-script-in-mail/m-p/4951424#M413605</link>
      <description>Shalom Deepu,&lt;BR /&gt;&lt;BR /&gt;Any output can be redirected to email:&lt;BR /&gt;&lt;BR /&gt;script | mailx -s "sql stuff" your@yourmail.com&lt;BR /&gt;&lt;BR /&gt;If its big, you can just do it as an attachment.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.hpux.ws/mailfile2" target="_blank"&gt;http://www.hpux.ws/mailfile2&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;This little gem uses sendmail to send large files as an attachment.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 11 Jan 2006 01:36:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-output-of-sql-script-in-mail/m-p/4951424#M413605</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2006-01-11T01:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to get output of sql script in mail?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-output-of-sql-script-in-mail/m-p/4951425#M413606</link>
      <description>If you want to attach the script executed log informations then use uuencode with mailx as,&lt;BR /&gt;&lt;BR /&gt;$ ./script &amp;gt; /tmp/sql.log&lt;BR /&gt;$ uuencode /tmp/sql.log sql.log | mailx -s "subject" mailid&lt;BR /&gt;&lt;BR /&gt;--&lt;BR /&gt;Muthu</description>
      <pubDate>Wed, 11 Jan 2006 01:38:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-output-of-sql-script-in-mail/m-p/4951425#M413606</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2006-01-11T01:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to get output of sql script in mail?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-output-of-sql-script-in-mail/m-p/4951426#M413607</link>
      <description>hi,&lt;BR /&gt;you can also send directly from Oracle itself using the Utl_Smtp package.&lt;BR /&gt;&lt;BR /&gt;see the following link:&lt;BR /&gt;&lt;A href="http://www.oracle.com/technology/sample_code/tech/pl_sql/htdocs/Utl_Smtp_Sample.html" target="_blank"&gt;http://www.oracle.com/technology/sample_code/tech/pl_sql/htdocs/Utl_Smtp_Sample.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;hope this helps!&lt;BR /&gt;&lt;BR /&gt;kind regards&lt;BR /&gt;yogeeraj</description>
      <pubDate>Wed, 11 Jan 2006 02:02:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-output-of-sql-script-in-mail/m-p/4951426#M413607</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2006-01-11T02:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to get output of sql script in mail?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-output-of-sql-script-in-mail/m-p/4951427#M413608</link>
      <description>Hi Guys,&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;Pls clarify the following;&lt;BR /&gt;1 How sendmail will pick up the output from .forward file ?&lt;BR /&gt;Since output will be generated through a cron job to a out file.</description>
      <pubDate>Wed, 11 Jan 2006 02:10:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-output-of-sql-script-in-mail/m-p/4951427#M413608</guid>
      <dc:creator>Deepu Chakravarty</dc:creator>
      <dc:date>2006-01-11T02:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to get output of sql script in mail?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-output-of-sql-script-in-mail/m-p/4951428#M413609</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;sendmail's checks local mail via user name. If a .forward file is present, it is used to route the mail.&lt;BR /&gt;&lt;BR /&gt;This is built into the standard sendmail.cf file. You can read it and search for forward or .forward&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 11 Jan 2006 02:17:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-output-of-sql-script-in-mail/m-p/4951428#M413609</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2006-01-11T02:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to get output of sql script in mail?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-output-of-sql-script-in-mail/m-p/4951429#M413610</link>
      <description>SHALOM,&lt;BR /&gt;&lt;BR /&gt;Thanks to everyone who were participated in this thread.  The issue is resolved.</description>
      <pubDate>Wed, 11 Jan 2006 23:45:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-output-of-sql-script-in-mail/m-p/4951429#M413610</guid>
      <dc:creator>Deepu Chakravarty</dc:creator>
      <dc:date>2006-01-11T23:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to get output of sql script in mail?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-output-of-sql-script-in-mail/m-p/4951430#M413611</link>
      <description>SEP's and Muthu's suggestion seemed to be more effective.  However I thank to everyone who were participated in this thread.</description>
      <pubDate>Wed, 11 Jan 2006 23:49:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-output-of-sql-script-in-mail/m-p/4951430#M413611</guid>
      <dc:creator>Deepu Chakravarty</dc:creator>
      <dc:date>2006-01-11T23:49:11Z</dc:date>
    </item>
  </channel>
</rss>

