Search This Blog

Sunday, April 17, 2011

How to Install TexttoHtml .

Why do you need TexttoHTML ?

A system administrator needs to send alert mails .Most of the times the alert mail contains the output of specific commands say ps -aux.

When this output is forwarded as mail the mail seems to be all text and no proper formatting.

Texttohtml utility helps to first convert this output to mail and then send it to user mail account.

Prerequisite:
Perl module is needed for installing TexttoHTML.

I m using following version of texttohtml.
/usr/bin/txt2html version: 2.51

http://txt2html.sourceforge.net/

Perl Module version installed on my distribution.
v5.8.8.

The simplest way of installing Texttohtml is via CPAN Module.

You can use the shell (perl -MCPAN -e shell ) to change settings, search for modules, install, update, ...

For easy installation of modules the community developed a module to fetch, install, and update modules not in the core distribution . To install a module including all dependencies, just type perl -MCPAN -e 'install HTML::TextToHTML' .

#perl -MCPAN -e shell

#perl -MCPAN -e 'install HTML::TextToHTML'
While

No comments:

Post a Comment