Labels

Thursday, October 11, 2012

How to send email from Unix/solaris

1)uuencode |sendmail
Example:-
uuencode script.sh script2.sh |sendmail

2) cat file_name | mailx -s <"subject name"
Example:-
df -kh | mailx -s "WARNING!  Archive Space Used Over 40%" subhram007@gmail.com

No comments:

Post a Comment