I want to write a script which when ran tars up a directory and emails it to an email address, then promptly deletes the file to preserve space.
I know how to do the rest but what's the best way to email a file from the command line?
I want to write a script which when ran tars up a directory and emails it to an email address, then promptly deletes the file to preserve space.
I know how to do the rest but what's the best way to email a file from the command line?
Desktop
Antec 300 Illusion, Athlon II X4 640, 8GB DDR3 1333, EarthWatts430W, Radeon HD 6670 1GB
Laptop
Lenovo Thinkpad Z61T, T7200@2.00GHz, 2GB DDR2, 100gb HD, TPM Encryption
Use sendEmail.
Install:
Usage:Code:sudo apt-get install sendemail
Code:sendEmail -f username@foo.com -t destination@foo.com -u "The Subject" -m "The message" -a /home/user/the_attachment.zip -s smtp.foo.com:25 -xu username -xp password
Bookmarks