Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'E-mail MIME attachments from the command line' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
E-mail MIME attachments from the command line
Authored by: easco on Feb 18, '04 08:54:28PM

No need to use Perl to do the encoding. The openssl command will encode base 64 for you just fine.

% openssl enc -base64 -in <somefile> -out <destination>

I believe that openssl is included by default so you can skip the download-and-install-a-PERL-module step.



[ Reply to This | # ]
E-mail MIME attachments from the command line
Authored by: googoo on Feb 19, '04 09:45:52AM

Thanks! I replaced the Perl part of the Base64 conversion section in the script with the following command, and it works like a charm.

openssl enc -base64 -in $F

(Of course, this command only works in the context of the script.)

-Mark

[ Reply to This | # ]