Cover by Ron Peters

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

O'Reilly logo

CHAPTER 23Command-Line E-mailAttachments

I often send e-mail to myself containing information gathered from a running system. Most of the information comes as flat text obtained from various files, or output from system commands. From time to time the file that I would like to send is a binary of some type. Sometimes I want a file to show up as an attachment regardless of whether it is a binary.

I wrote a few scripts that can perform such a task. They encode the binary file as flat text for transmission and then e-mail the file. The file can then be decoded at the receiving end manually or, more conveniently, by the e-mail client receiving the file. Each script takes as input the binary file and the destination e-mail address.

uuencode

The first ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required