Friday, October 31, 2008

Sending file from unix as email attachement

We as DBA's need to send files from server to users, mainly trace files etc. So it would be great if you can get some way to send files as email attachement. I hope following command which I use in solaris box will help many of us:

uuencode File_Name File_Name : (Kindly use Pipe sign instead off colon) mailx -s "server file"
You will receive File which you have mentioned in File_Name as email attachment.

Happy Troubleshooting !!!

No comments: