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: nt script

RE: nt script

From: Seefelt, Beth <Beth.Seefelt_at_TetleyUSA.com>
Date: Tue, 01 Jul 2003 14:09:21 -0700
Message-ID: <F001.005BD935.20030701134905@fatcity.com>

FIND or FINDSTR should work equally well, I think. Maybe it depends on your exact platform.

-----Original Message-----
Sent: Tuesday, July 01, 2003 5:07 PM
To: Multiple recipients of list ORACLE-L

Hi...

I could not follow this thread, so, I do not know the current status...

anyway... I tested this and it works...

1.- First, I saw that you asked for: string called ORA and your errorlevel statement failed.

2.- Second, the script sent by: Seefelt, Beth looks like it works (I did not test it), EXCEPT that you HAVE to change this line:

> FIND "ORA-03313" psprcsrv_psnt_%MMDD%.log

with this one:

> FINDSTR "ORA-03313" psprcsrv_psnt_%MMDD%.log

HTH
JL

there you go... (modify at your own needs...)

copy con test.cmd
findstr "%1" alert_develop.log
if errorlevel 1 goto no
if errorlevel 0 goto si
:no

   echo no se encontr&#8804; la cadena: %1    goto fin
:si

   echo si se encontr&#8804; la cadena: %1 :fin
ctrl-Z


Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Jose Luis Delgado
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (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).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Seefelt, Beth
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (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 Tue Jul 01 2003 - 16:09:21 CDT

Original text of this message

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