2
I have a script that works removing files x days and keep the folders. I'm trying to send an email once its done with the deletion. Any advice? Current script is below:
#!/bin/bash
find /testftp/* -type f -mtime +10 -exec rm {} \;
UBJECT="FTP Cleanup"
EMAIL="myemail@somewhere.com"
EMAILMESSAGE="IT WORKS"
/bin/mail -s "$SUBJECT" "$EMAIL" "$EMAILMESSAGE"
Does that not work? Are you seeing an error, or what? – Zoredache – 2012-01-11T18:52:44.827
That's
SUBJECT
, notUBJECT
. – Daniel Beck – 2012-01-11T19:09:02.647