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
In reply to Re: read and move file
by Juerd
in thread read and move file
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |