Have a file File.txt
and if any process is trying to copy the file from /source/
to /destination/
Is there a way to identify if the file File.txt
(or any other file ) available in /destination/
is completely copied, or the process is still going on.
I tried lsof
but its not working
**Error** : lsof: WARNING: can't stat() nfs file system
Any suggestions
progress
and runprogress -m
and it should be able to tell you. If your command is not a well-known command runprogress -m -c my_command
. Or installpv
, which also works but it requires the PID to be supplied, as inpv -d 1234
.