Is there a way to get my script to only trigger when a .ppt is created?
#!/bin/bash
while inotifywait -e create /ticker/powerpointshare;
do
sleep 30;
sudo chmod -R 777 /ticker/powerpointshare/*.*;
sleep 15;
sudo reboot;
done
I'm not sure if this is even possible but would piping the
while inotifywait -e create /ticker/powerpointshare;
into a grep for *.ppt and if its a .ppt then continue ifnot end.