L
loial
How can I check whether a file is being written to by another process
before I access it?
Platform is unix.
before I access it?
Platform is unix.
How can I check whether a file is being written to by another process
before I access it?
How can I check whether a file is being written to by another process
before I access it?
Platform is unix.
Thomas Jollans said:As such, you can't. But you can lock the file using the functions in the fcntl
module.
Last time I checked, file-locking in unix was co-operative.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.