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

Home -> Community -> Usenet -> c.d.o.misc -> Re: SQL*Plus - Hide "Connected" response to Connect

Re: SQL*Plus - Hide "Connected" response to Connect

From: Anurag Varma <avdbi_at_hotmail.com>
Date: Tue, 10 Aug 2004 23:18:09 GMT
Message-ID: <RIcSc.113850$yd5.91230@twister.nyroc.rr.com>

"Hans Forbrich" <forbrich_at_yahoo.net> wrote in message news:h7XRc.75000$T_6.45254_at_edtnps89...
> Anurag Varma wrote:
>
> > or maybe you can just grep the "connected" out ...
> > something like this:
> >
> > print "
> > connect user/pass
> > @sqlscript
> > exit;
> > " | sqlplus -s /nolog | egrep -v '^Connected.$' > output.file
> >
>
> You assume he's on a real OS. What's the WIndows equiv? ;-)
> /H
>
>

For windows/dos, perl can be of help.... :) something like
sqlplus -s /nolog @sqlscript | perl -pe "s/^Connected.$//g"

which would work in both windows and unix (provided perl is installed)

Anurag Received on Tue Aug 10 2004 - 18:18:09 CDT

Original text of this message

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