mirror of
https://github.com/moshix/mvs.git
synced 2026-01-13 07:09:40 +00:00
11 lines
675 B
Bash
11 lines
675 B
Bash
#!/bin/bash
|
|
inotifywait -m /var/www/html/print/spool/mvs/CLASSA/ -e create -e moved_to |
|
|
while read dir action file; do
|
|
echo "The file '$file' appeared in directory '$dir' via '$action'"
|
|
sleep 0.5
|
|
sendemail -f listing@soso -t soso2@gmail.net -u "OVH Class A Listing" -m "New Class A Listing!" -a $dir"$file" || echo "could not email $dir/$file"
|
|
done
|
|
~
|
|
~
|
|
~
|