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

Home -> Community -> Usenet -> c.d.o.server -> Re: Equivalent of UNIX hear document on Windows NT

Re: Equivalent of UNIX hear document on Windows NT

From: Galen Boyer <galen_boyer_at_yahoo.com>
Date: 9 Mar 2006 16:29:03 -0600
Message-ID: <uwtf3qe0f.fsf@rcn.com>


On 7 Mar 2006, dbaplusplus_at_hotmail.com wrote:
>
> Versions of Oracle and UNIX are not relevant. But I work on HP UNIX
> using Oracle9i.
>
> When writing shell scripts, I use Unix's here document, e.g.,
>
> Sqlplus /nolog << !
> Conn scott/tiger
> Statement1
> Statement2
> !
>
>
> How can I do the same on Windows NT/2000. I am writing .bat files,

www.cygwin.com is wonderful for this.

I have authored shell code that is completely portable to UNIX this way loads of times. (Well, there are directory issues and versions of shell issues, but in general, the code written in cygwin will run in UNIX)

-- 
Galen Boyer
Received on Thu Mar 09 2006 - 16:29:03 CST

Original text of this message

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