The really easy way is to output the text in HTML like the following:
use HTML::Escape 'escape_html'; my $text= collect_output_as_txt( @servers ); my $title= "Report for servers " . join ",", @servers; $text= escape_html( $text ); print <<HTML; <html> <head><title> $title </title></head> <body> <pre> $text </pre> </body> </html> HTML
If you want more fancy formatting, you will need to parse the output of each command and then fill the HTML appropriately.
In reply to Re^3: HTML static output
by Corion
in thread HTML static output
by unixdisk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |