<?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 Perl script help in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-help/m-p/3001524#M914352</link>
    <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;   I am trying to write a small perl script which runs a small sql using sqlplus. Perl code looks like this. &lt;BR /&gt;&lt;BR /&gt;open(p_scode,"|/db01/app2/oracle/product/8.1.7/bin/sqlplus -s /");&lt;BR /&gt;&lt;BR /&gt;print p_scode&amp;lt;&lt;END&gt;&lt;/END&gt;spool $prj_sty_lst_fl&lt;BR /&gt;select lower(a.project_code)||...&lt;BR /&gt;...&lt;BR /&gt;...&lt;BR /&gt;close p_scode;&lt;BR /&gt; &lt;BR /&gt;  When I execute the perl script, the sql output is written in spool file as well as shown on to screen (which I don't want). How do I suppress the output to screen. &lt;BR /&gt;&lt;BR /&gt;Thanks in adv. &lt;BR /&gt;&lt;BR /&gt;Krish</description>
    <pubDate>Wed, 18 Jun 2003 20:57:06 GMT</pubDate>
    <dc:creator>Kris_5</dc:creator>
    <dc:date>2003-06-18T20:57:06Z</dc:date>
    <item>
      <title>Perl script help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-help/m-p/3001524#M914352</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;   I am trying to write a small perl script which runs a small sql using sqlplus. Perl code looks like this. &lt;BR /&gt;&lt;BR /&gt;open(p_scode,"|/db01/app2/oracle/product/8.1.7/bin/sqlplus -s /");&lt;BR /&gt;&lt;BR /&gt;print p_scode&amp;lt;&lt;END&gt;&lt;/END&gt;spool $prj_sty_lst_fl&lt;BR /&gt;select lower(a.project_code)||...&lt;BR /&gt;...&lt;BR /&gt;...&lt;BR /&gt;close p_scode;&lt;BR /&gt; &lt;BR /&gt;  When I execute the perl script, the sql output is written in spool file as well as shown on to screen (which I don't want). How do I suppress the output to screen. &lt;BR /&gt;&lt;BR /&gt;Thanks in adv. &lt;BR /&gt;&lt;BR /&gt;Krish</description>
      <pubDate>Wed, 18 Jun 2003 20:57:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-help/m-p/3001524#M914352</guid>
      <dc:creator>Kris_5</dc:creator>
      <dc:date>2003-06-18T20:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: Perl script help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-help/m-p/3001525#M914353</link>
      <description>I think it is beacuse of STDOUT file handle used by the "print " statement in this script.</description>
      <pubDate>Thu, 19 Jun 2003 04:59:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-help/m-p/3001525#M914353</guid>
      <dc:creator>K.Vijayaragavan.</dc:creator>
      <dc:date>2003-06-19T04:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: Perl script help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-help/m-p/3001526#M914354</link>
      <description>Hi Krish,&lt;BR /&gt;&lt;BR /&gt;I don't know your level of ORACLE knowledge so please excuse me if you find any of this a little condescending!&lt;BR /&gt;&lt;BR /&gt;I think it's because you need to turn echoing off within the ORACLE script.&lt;BR /&gt;&lt;BR /&gt;Try adding a line such as:&lt;BR /&gt;   set echo off&lt;BR /&gt;before your spool definition and see if that makes any difference.&lt;BR /&gt;&lt;BR /&gt;You can also use:&lt;BR /&gt;   set heading off&lt;BR /&gt;   set feedback off&lt;BR /&gt;and several others depending on what you need returning.&lt;BR /&gt;&lt;BR /&gt;BTW, if you're expecting the "-s" options to run silent, I believe it's a capital "S".&lt;BR /&gt;&lt;BR /&gt;Ollie.</description>
      <pubDate>Thu, 19 Jun 2003 05:10:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-help/m-p/3001526#M914354</guid>
      <dc:creator>Ollie R</dc:creator>
      <dc:date>2003-06-19T05:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: Perl script help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-help/m-p/3001527#M914355</link>
      <description>Hi Ollie,&lt;BR /&gt;&lt;BR /&gt;   In the sql script, I did used echo off, but still the output is sent to screen. If it is a shell script, I could easily send the output to /dev/null, but in perl I have no idea on how to send this to null device. This is my first perl script. TIA&lt;BR /&gt;&lt;BR /&gt;set termout off&lt;BR /&gt;set trimspool on&lt;BR /&gt;set pagesize 0&lt;BR /&gt;set feedback off&lt;BR /&gt;set echo off&lt;BR /&gt;set verify off&lt;BR /&gt;select lower(a.project_code)||...&lt;BR /&gt;...&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;Kris</description>
      <pubDate>Thu, 19 Jun 2003 12:03:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-help/m-p/3001527#M914355</guid>
      <dc:creator>Kris_5</dc:creator>
      <dc:date>2003-06-19T12:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: Perl script help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-help/m-p/3001528#M914356</link>
      <description>I don't know Oracle, so I don't think I can help you directly here. BUT, when I have Perl questions, I often go to &lt;A href="http://www.perlmonks.org," target="_blank"&gt;www.perlmonks.org,&lt;/A&gt; a fantastic online Perl community populated by some VERY wizardly people, including a couple of the authors of the O'Reilly camel book.&lt;BR /&gt;&lt;BR /&gt;I'm not denigrating these forums here at all ... Perl Monks is another resource for Perl-specific issues, though.&lt;BR /&gt;</description>
      <pubDate>Thu, 19 Jun 2003 12:17:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-help/m-p/3001528#M914356</guid>
      <dc:creator>Mark Landin</dc:creator>
      <dc:date>2003-06-19T12:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: Perl script help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-help/m-p/3001529#M914357</link>
      <description>Change the STDOUT and STDERR on the sqlplus command-&lt;BR /&gt;&lt;BR /&gt;open(p_scode,"|/db01/app2/oracle/product/8.1.7/bin/sqlplus -s / &amp;gt;/dev/null 2&amp;gt;&amp;amp;1"); &lt;BR /&gt;&lt;BR /&gt;This way any output generated by sqlplus will be sent to the bit bucket.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;-- Rod Hills</description>
      <pubDate>Thu, 19 Jun 2003 12:52:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-help/m-p/3001529#M914357</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2003-06-19T12:52:55Z</dc:date>
    </item>
  </channel>
</rss>

