in reply to read and move file
Do I have to worry about opening a file that the other process hasn't finished writing yet?
You should! The very small overhead tradeoffs are worth it, and nobody will notice the script running a few nanoseconds longer. You could use Perl's flock, but be sure to read its documentation first!
U28geW91IGNhbiBhbGwgcm90MTMgY
W5kIHBhY2soKS4gQnV0IGRvIHlvdS
ByZWNvZ25pc2UgQmFzZTY0IHdoZW4
geW91IHNlZSBpdD8gIC0tIEp1ZXJk
|
|---|