Hello.
I was wondering how i write a bash script, which would send a prowl notification to my iphone, whenever a specific file on my raspberry pi raspbian/debian based) becomes unavailable?
This is what i have so far: (This should warn me if a file is unavailable)
Code:
if [[ ! -f /tmp/foo.txt ]]; then
echo "File not found!"
fi
And This is the prowl command: (I Think)
Code:
$ wget --post-data 'apikey=2541[snip]4d77&application=wget&event=Test message&description=I can use wget' -O - https://api.prowlapp.com/publicapi/add
But how do i combine these two into one bash script?
Thanks