Re: SPOOL command in same script for Windows & UNIX clients
From: Gerard H. Pille <ghp_at_skynet.be>
Date: Fri, 16 May 2003 18:14:07 +0200
Message-ID: <3EC50E4F.8010608_at_skynet.be>
Date: Fri, 16 May 2003 18:14:07 +0200
Message-ID: <3EC50E4F.8010608_at_skynet.be>
Stephen Haunch wrote:
> Hi,
>
> I have SQL*Plus scripts which run primarily through the Windows SQL*Plus
> client, these scripts contain SPOOL commands like this: -
>
> SPOOL Output\uunl-135-&reportdate..txt
>
> If I were to run this script using a UNIX SQL*Plus client the SPOOL command
> shown above would cause problems because it should be: -
>
> SPOOL Output/uunl-135-&reportdate..txt
>
> Is there a way to make SQL*Plus figure out which type of directory delimiter
> to use, i.e. \ for Windows and / for UNIX?
>
> Any help would be appreciated!
>
> Steve
>
I don't immediately see a solution for sql*plus itself, but you could pass the directory as a command-line parameter?
-- Gerard H. PilleReceived on Fri May 16 2003 - 18:14:07 CEST
