Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Script to check filename continuously
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 gan_at_i2.com To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com> Sent by: cc: ml-errors_at_fatcity 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;
Thanks
Sami
-- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: INET: Saminathan_Seerangan_at_i2.com 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: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-LReceived on Thu Jul 03 2003 - 16:39:24 CDT
(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: Brian_P_MacLean_at_eFunds.Com 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: 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).
![]() |
![]() |