1
0
mirror of https://github.com/moshix/mvs.git synced 2026-04-06 05:02:28 +00:00

Create printmailer.txt

This commit is contained in:
moshix
2021-09-10 11:57:45 -05:00
committed by GitHub
parent 4adc099561
commit c553682122

10
printmailer.txt Normal file
View File

@@ -0,0 +1,10 @@
#!/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
~
~
~