What do you need? To only display the very latest until a newer file arrives? No cycling back to older files?
Originally Posted by nikonaugust
With Linux it is fairly straightforward.
For Windows, you can find similar tools, but I haven't written windows scripts in a long long time. I'm not even going to try it for Mac.
while (true) do
img=`ls -tr *.cap | tail -1`;
if [ $latest_img != $img ] ; then
# Sleep to give it enough time to finish transfer in case it is not done
echo "Newest file : $img";
# You will want to add commands here to kill the old instance of viewer
# and launch a new one with latest image name as parameter