[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: wait until the file is done
From: |
João Eiras |
Subject: |
Re: wait until the file is done |
Date: |
Sat, 31 Oct 2020 19:41:07 +0100 |
I'd solve this use case in bash using flock, if you are in a linux like
environment (on windows, use cygwin).
https://linux.die.net/man/1/flock
e.g.
flock -x video.mp4 -c poweroff
The exclusive lock is acquired when no one else has opened the file with
read or write access. That might mean your video editing software closed
the file. Or not. For you to check.
- Re: wait until the file is done, (continued)
- Re: wait until the file is done, Mike Jonkmans, 2020/10/30
- Re: wait until the file is done, Greg Wooledge, 2020/10/30
- Re: wait until the file is done, Dennis Williamson, 2020/10/30
- Re: wait until the file is done, Mike Jonkmans, 2020/10/30
- Re: wait until the file is done, Russell Lewis, 2020/10/30
- Re: wait until the file is done, Greg Wooledge, 2020/10/30
- Re: wait until the file is done, Mike Jonkmans, 2020/10/30
- Re: wait until the file is done, Seth David Schoen, 2020/10/30
Re: wait until the file is done, MN, 2020/10/30
Re: wait until the file is done, MN, 2020/10/31