Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- find /path/to/folder/ -type f -size +1M -name "*.mov" -printf "%fn" | ssmtp my_email@domain.com
- find /path/to/folder/ -type f -size +1M -name "*.mov" -printf "%fn" | my_email@domain.com < /path/to/file/subjectline.txt
- {
- echo To: my_email@domain.com
- echo From: from_email@example.com
- echo Subject: mov files greater than 1M
- echo
- find /path/to/folder/ -type f -size +1M -name "*.mov"
- } | ssmtp my_email@domain.com
- # cat /opt/mail.sh
- #!/bin/bash
- echo "Subject: from pc" > /root/myip.txt
- curl -s checkip.dyndns.org >> /root/myip.txt
- sleep 10
- /usr/sbin/ssmtp email@domain.org < /root/myip.txt
- # cat /root/myip.txt
- Subject: from pc
- <html><head><title>Current IP Check</title></head><body>Current IP Address: xxx.xxx.xxx.xxx</body></html>
Add Comment
Please, Sign In to add comment