Here is a start for you.  You can get the sleep command at any of these
places

      http://www.weihenstephan.de/~syring/win32/UnxUtils.html
      http://www.cruzio.com/~jeffl/mrtg/docs/sleep.exe
      http://www.nextgeneration.dk/gnu/index.shtml


@ECHO OFF
set BASE_DIR=d:\oracle\oradata\sid\archive
set BASE_FILE=*.arc
set RMT_DIR=x:\rmt_path
:LOOP
for /F  %%T In ('dir %BASE_FILE% /B /O:-N') Do (
  copy %%T %RMT_DIR%\%%T
)
sleep 5
GOTO LOOP





                                                                                       
                                              
                      Saminathan_Seeran                                                
                                              
                      [EMAIL PROTECTED]               To:       Multiple recipients of 
list ORACLE-L <[EMAIL PROTECTED]>                 
                      Sent by:                 cc:                                     
                                              
                      [EMAIL PROTECTED]        Subject:  Script to check filename 
continuously                                       
                      .com                                                             
                                              
                                                                                       
                                              
                                                                                       
                                              
                      07/03/2003 03:30                                                 
                                              
                      AM                                                               
                                              
                      Please respond to                                                
                                              
                      ORACLE-L                                                         
                                              
                                                                                       
                                              
                                                                                       
                                              








Hi All

Does anyone have script(DOS batch file or Unix Shell) to do the following
stuff?

loop
if exist FILE_NAME
      begin
            do something;
            copy files to remote machine,etc...
            EXIT;
      end;
end loop;

Thanks
Sami

--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author:
  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: 
  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).

Reply via email to