#!/bin/sh #Sends a mail to some addresses with an attachment #No handling of errors (poor programming practice) subject=”Classified Top Secret Communication” addresslist=”fbi@fbi.com viceprez@us.com big_biz@oil_companies.com” echo “Osama has escaped once again” >>mail_text echo “He even took our money” >>mail_text echo “Let us get Saddam instead. Plans of attack attached.” >> mail_txt ( cat mail_text; uuencode Plan_Of_Attack.doc Plan_Of_Attack.doc ) | mailx -m -s “$subject” $addresslist