Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Display shell script output

Re: Display shell script output

From: Limin Guo <lguo.oracle_at_gmail.com>
Date: Mon, 17 Jul 2006 16:35:11 -0400
Message-ID: <9556d5680607171335h3f80c3ddj8865b24c5e0ce61e@mail.gmail.com>


If you want to see the command executed, try this

output=`sqlplus -s system/password<<EOF <system/password@%3C%3CEOF> set echo on
set termout on
set feedback on
Create user test identified by test
default tablespace rcvcat_tbs
quota 0 on system;
exit;
EOF`
echo $output

Hope this helps.

Limin.

On 7/14/06, Ranko Mosic <ranko.mosic_at_gmail.com> wrote:
>
> Hi List,
> I need to be able to see commands executed on the sceen - they are not
> echoed now:
> #!/bin/ksh
> sqlplus system/password<<EOF <system/password@%3C%3CEOF>
> set echo on
> set termout on
> set feedback on
> Create user test identified by test
> default tablespace rcvcat_tbs
> quota 0 on system;
> exit;
> EOF
>
>
> --
> Regards,
> Ranko Mosic
> Contract Senior Oracle DBA
> B. Eng, Oracle 10g, 9i Certified Database Professional
> Phone: 416-450-2785
> email: mosicr_at_rogers.com
>
> http://ca.geocities.com/mosicr@rogers.com/ContractSeniorOracleDBARankoMosicMain.html
>
>

-- 
Regards,

Limin Guo.

--
http://www.freelists.org/webpage/oracle-l
Received on Mon Jul 17 2006 - 15:35:11 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US