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: Converting DOS batch file to UNIX script

Re: Converting DOS batch file to UNIX script

From: Rachel Carmichael <carmichr_at_hotmail.com>
Date: Fri, 16 Feb 2001 13:16:08 -0800
Message-ID: <F001.002B6F81.20010216125632@fatcity.com>

copy = cp
rem = #

but your if statements are gonna blow up

>From: Sam Bootsma <SamB_at_cpas.com>
>Reply-To: ORACLE-L_at_fatcity.com
>To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com>
>Subject: Converting DOS batch file to UNIX script
>Date: Fri, 16 Feb 2001 12:02:43 -0800
>
>Hello All:
>
>We are a Windows shop developing a software product that runs on an Oracle
>database. Most of our clients also run Oracle on Windows. Recently, a
>couple of our new clients have decided to run our database on a UNIX server
>instead of NT server. I do not know what flavour of UNIX our clients have.
>I know the slashes go in the other direction in UNIX scripts, but can
>anybody tell me the UNIX equivalent of COPY, MKDIR, CD, ECHO, and REM?
>
>Here are a few lines of the batch file we use to install our product. Can
>anybody help me to convert DOS batch file commands to generic UNIX script
>commands?
>
>-------snip-------
>@ECHO OFF
>ECHO To run this installation please type (at the CD-ROM prompt)
>
>IF "==%1" GOTO NODRIVE
>CD\
>MKDIR %1:\DB543
>COPY \SERVER\SCRIPTS\Install.bat %1:\DB543\SERVER\SCRIPTS\Install.bat
> >NUL:
>:NODRIVE
>REM this is a remark
>call %1:\DB543\SERVER\Scripts\Install.bat parm1 parm2 parm3
>
>sqlplus system/manager_at_db
>-------snip-------
>
>Thanks for your help.
>
>Sam
>
>
>--
>Please see the official ORACLE-L FAQ: http://www.orafaq.com
>--
>Author: Sam Bootsma
> INET: SamB_at_cpas.com
>
>Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
>San Diego, California -- Public Internet access / Mailing Lists
>--------------------------------------------------------------------
>To REMOVE yourself from this mailing list, send an E-Mail message
>to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
>the message BODY, include a line containing: UNSUB ORACLE-L
>(or the name of mailing list you want to be removed from). You may
>also send the HELP command for other information (like subscribing).



Get your FREE download of MSN Explorer at http://explorer.msn.com
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Rachel Carmichael
  INET: carmichr_at_hotmail.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Fri Feb 16 2001 - 15:16:08 CST

Original text of this message

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