in reply to How to PRINT CGI html table to a PNG file

No, modern browsers do not support HTML images, but you could load Sys_Load.cgi in an inline frame instead:

<iframe src="Sys_Load.cgi"></iframe>

Unless what you are doing is a homework problem, perhaps you should consider looking for existing solutions for building a dashboard with machine usage statistics.

Replies are listed 'Best First'.
Re^2: How to PRINT CGI html table to a PNG file
by theravadamonk (Scribe) on Aug 21, 2018 at 17:04 UTC
    <iframe src="Sys_Load.cgi"></iframe>

    Hi, Your above code made my life easier.

    Anyway, I changed it in following way since I think without border is better. Pls hv a look at.

    <iframe src = "Sys_Load.cgi" style="border:none;"></iframe>

    >> Unless what you are doing is a homework problem, perhaps you should consider looking for existing solutions for building a dashboard with machine usage statistics.

    I do need server statistics. How can build a dashboard. Where can I hv docs for it?

    What about these?

    https://metacpan.org/pod/GD::Dashboard

    https://metacpan.org/release/GD-Dashboard

    Or do you have some others docs. Pls share

      Yes, that's one of the ways to disable the border. This usage is fine.

      Speaking of existing monitoring solutions, take a look at Munin. It generates an HTML page with plots and it's even written in Perl.