sending mail is the easy part.. cat or echo your data.. echo blah | mail -s subject you at somesite.com but attatching a file has a trick, for the contents of cat to NOT be in the body of the message, tar or gzip, or both the file in question.. tar cvf file ; cat file | mail -s subject you at somesite.com -------------------------------------------------------------------------------