windows batch commands execution issue file being used by another process -


i trying compress file using batch program, stuck below issue, server log file gets data populated server , need keep running. no other way, need compress file while being used. want force execute this, please suggest me solution.

weblogic server not facilitate ".out" files, available ".log" file. our current issue compress .out file

the utility calling script "c:\program files\7-zip\7z.exe" -tzip newarchive.zip new_managedserver_1.out

> 7-zip [64] 16.04 : copyright (c) 1999-2016 igor pavlov : 2016-10-04 >  > scanning drive: 1 file, 25972 bytes (26 kib) >  > creating archive: > c:\oracle\middleware12c\oracle_home\user_projects\domains\base_domain\servers\new_managedserver_1\logs\new_managedserver_1-07252017-223920.zip >  > items compress: 1 >  >  > warning: process cannot access file because being used > process. > c:\oracle\middleware12c\oracle_home\user_projects\domains\base_domain\servers\new_managedserver_1\logs\new_managedserver_1.out >  >  > files read disk: 1 archive size: 22 bytes (1 kib) >  > warnings files: >  > c:\oracle\middleware12c\oracle_home\user_projects\domains\base_domain\servers\new_managedserver_1\logs\new_managedserver_1.out > : process cannot access file because being used > process. > ---------------- warning: cannot open 1 file process cannot access file because being used process. 

you can not while file in use

you should try configure oracle middleware rotate outfile (create new file every hour or day) no longer accessed, can zip old file.


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -