trying to write a script which sends a dev null to a file so that it removes contents and then writes it to a dated temp file;
EX File is A.log ,
Temp file will = A12_03_03_TEMP.log
The problem I have is that , lets say the log is 5 meg , after the dev null it is emptied but remains at 5 meg !! Going insane can anyone help. I cant do a close rename and open as a new file because this affects the writer of the log (shuts it down!!) so im in big confusion territory...?
EX SCRIPT
Thanks in advance JT
EX File is A.log ,
Temp file will = A12_03_03_TEMP.log
The problem I have is that , lets say the log is 5 meg , after the dev null it is emptied but remains at 5 meg !! Going insane can anyone help. I cant do a close rename and open as a new file because this affects the writer of the log (shuts it down!!) so im in big confusion territory...?
EX SCRIPT
Thanks in advance JT