Hi all,
4 years ago one of the members of this list, responding to a question I
posed on the "Linux Answers" site, supplied me with this script which
met my need for a photobooth running with Cheese.
#! /bin/bash
inotifywait -m -e close_write ~/Pictures/Webcam --format "%w%f" | \
while read filename; do lpr -P HP "$filename"; mv "$filename"
~/Pictures/Webcam/printed; done
I know that 4 years in Linux is a long time, so I was not surprised to
find that the script failed because the inotifywait command is no longer
recognised. I am not skilled in scripting but I did read the man file.
My questions are, do I substitute in_add_watch instead of inotifywait?
Do I keep the rest of the line the same?
Many thanks
Andrew Greig
_______________________________________________
luv-main mailing list
[email protected]
https://lists.luv.asn.au/cgi-bin/mailman/listinfo/luv-main