Well it depends on your operating system first
If it's under Windows you could use a batch file (.bat) with something like:
net stop "service name"
copy d:\ars\arserver\db\*.log g:\backup\myfolder\%log_date%\
net start "service name"
I didn't test it, but that's the idea (stop service, create a folder, copy logs in folder, delete logs, start service).
Thanks for U r Help and can we achive the following steps by using u r commands
- Scheduled job to enable logs (e.g. filter log) and wait for 10 minutes
- After 10 minutes, disable the log(s) and cut and paste the log(s) at some pre-defined place
- Enable the logs again after movement of the file
- Repeat the same process from 1 through 3 continuously
Sanjeeva Naidu G