11
votes
1answer
13k views

How, in a script, can I determine if a file is currently being written to by another process?

I'm very new to bash scripting, so I might be barking up the wrong tree, but here is my current situation: In a script, I start soffice; to convert an odt to a pdf It seems that soffice detaches ...