Printing to a web page

I have a shell script that runs periodic upgrades on machines. I want to print certain echo commands from the shell script onto a webpage. What command in shell should I use for doing this.

In general your script would echo html. Could be whole page of html or something designed to be embedded without html content. You can use a cgi-bin to invoke the program which outputs the html for display (for example).

If it's just static generation, you could simply direct output to an html file that can be seen by the web server.

But in general, in both cases, you would output HTML format from the script.

Beyond this, you'd need to give more info about the web server you're running, modules installed, etc. For example, perhaps you have the php module installed into your web server... well, it's pretty easy to make a callout to a shell program from php... you could use that for dynamic presentation of the script's output. And as I mentioned, there's always cgi-bin as well. You might want to invest time and/or money in reading up on building web sites... Just an idea...