java - CAMEL is processing the file before the "mv" command completes -
We are experiencing a problem in our monitor script.
The program's flow is
Since we use scripting, we have very less flexibility in using commands, we are using the Linux "MV" command to rename the file.
Is there a way to lock the file into Scripting while changing the name that will stop the CMML from accessing it?
or
thanks, Matthew Leuja
you step 3 How do?
mv foo.aaa dest / foo.csv
or
MV foo.aaa dest / foo.aaa MV dest / foo.aaa dest / foo.csv
The latter should be atomic, I think, while the first is a copy if the original and destination are on separate partition / file system.
Comments
Post a Comment