Link to home
Start Free TrialLog in
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 ..????????
ASKER CERTIFIED SOLUTION
Avatar of Gerwin Jansen
Gerwin Jansen
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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?
Avatar of Tintin
Tintin

The most simple form is to do

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

Open in new window

Avatar of prav83

ASKER

thank you