I'm trying to display images one after the other automatically using bash. However if I use a command like this. It doesn't close the last image before opening the next.
while read p;
do eog $p;
sleep 2;
done < filelist.txt
Has anyone an idea how to do this?
Just get the
PID
of theeog
process and kill it before the next: