in reply to Re^2: HTML static output
in thread HTML static output
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.
|
|---|