Avatar of prav83
prav83
 asked on

UNIX Automation - Output of a command on a webpage

I need some help in the building tools which involves outputting the script output to a Webpage, I am looking for Procedure and Process that might involve in building this automation tool -

The tool when complete should output something like this on the  webpage, This data will updated monthly. Sample out put on a webpage

------------------------------
Server           Month(April)
------------------------------
server1         6100-tl6-sp3
server2         7100-tl2sp1


Next month the output should look like

-------------------------------------------------------------
Server           Month(April)             Month(May)
-------------------------------------------------------------
server1         6100-tl6-sp3            6100-tl6-sp6
server2         7100-tl2sp1              7100-tl2sp1

the output for April and May is the operating system level.

So can someone guide me ..????????
Unix OSLinux

Avatar of undefined
Last Comment
prav83

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Gerwin Jansen

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
SOLUTION
Wasim Akram Shaik

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Gerwin Jansen

Have you written (part of) some script already? If so, can you post that?

When you're looking that the process part: I'd use one or 2 cron jobs to schedule creating your HTML file. One for getting the data and another for creating the output. So one job would collect the OS level for the servers. We would need to get that information using a remote call in some way or is that information already stored somewhere?

How and where do you want the HTML output to be published? On one of the servers or on a separate (reporting) machine?
Tintin

The most simple form is to do

(echo "<pre>"; /path/to/your/script; echo "</pre">) >/path/to/webpage.html

Open in new window

prav83

ASKER
thank you
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23