- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Perl script help
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2003 01:57 PM
06-18-2003 01:57 PM
I am trying to write a small perl script which runs a small sql using sqlplus. Perl code looks like this.
open(p_scode,"|/db01/app2/oracle/product/8.1.7/bin/sqlplus -s /");
print p_scode<
select lower(a.project_code)||...
...
...
close p_scode;
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.
Thanks in adv.
Krish
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2003 09:59 PM
06-18-2003 09:59 PM
Re: Perl script help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2003 10:10 PM
06-18-2003 10:10 PM
Re: Perl script help
I don't know your level of ORACLE knowledge so please excuse me if you find any of this a little condescending!
I think it's because you need to turn echoing off within the ORACLE script.
Try adding a line such as:
set echo off
before your spool definition and see if that makes any difference.
You can also use:
set heading off
set feedback off
and several others depending on what you need returning.
BTW, if you're expecting the "-s" options to run silent, I believe it's a capital "S".
Ollie.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2003 05:03 AM
06-19-2003 05:03 AM
Re: Perl script help
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
set termout off
set trimspool on
set pagesize 0
set feedback off
set echo off
set verify off
select lower(a.project_code)||...
...
...
Kris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2003 05:17 AM
06-19-2003 05:17 AM
Re: Perl script help
I'm not denigrating these forums here at all ... Perl Monks is another resource for Perl-specific issues, though.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2003 05:52 AM