Here's the deal....
/dir/A is a bucket that I shoot large JPEGS into from a camera.
I have a script running that monitors this bucket and if it sees a new jpeg file in it, it displays the jpeg onto my screen.
However, since the file is really large, sometimes the script tries to display the jpeg image but the jpeg hasn't completely copied over yet. Thus, only a part of the jpeg image gets displayed. :-(
How can I mitigate this? My script is a bash script and perhaps there's already a builtin command or function to help with this. Thanks for any help.
/dir/A is a bucket that I shoot large JPEGS into from a camera.
I have a script running that monitors this bucket and if it sees a new jpeg file in it, it displays the jpeg onto my screen.
However, since the file is really large, sometimes the script tries to display the jpeg image but the jpeg hasn't completely copied over yet. Thus, only a part of the jpeg image gets displayed. :-(
How can I mitigate this? My script is a bash script and perhaps there's already a builtin command or function to help with this. Thanks for any help.