dear friends ,
in my work i have to monitor some system performance in hourly basis by runing some commands , for example (lpstat) to know that all the queue is ready
how can i create webpage and connect it with the server (AIX operating system) and make this page refreshed every 10 second and see the result of that command
your adviced is highly appreciated guys
thanks
---------- Post updated at 02:00 AM ---------- Previous update was at 01:27 AM ----------
thanks man it is usfull
i found good website explain it very good
but the problem that i cannot find the cgi-bin in my server
the server running AIX 6.0
where can i found the Directory ??
i am lost now
do you mean that the cgi-bin must be in IIS server or in the AIX server ??
again i have AIX server ok
and i need to make script with many commands and see the result for this commands in webpage in internet explorer browser ok , and make this commands refrished every 10 seconds
what do i need exactly ??
If you are not familiar with CGI then I suggest to run a shell script that executes lpstat every 10 seconds.
You can code an infinite while loop that executes lpstat and sleep for 10 seconds. You have to copy the output and publish the output in your local IIS web-server or FTP it and publish if your IIS web-server is running on a remote machine:-
while true
do
# Run lpstat here and redirect output to a HTML file.
# FTP or copy this HTML file to publish it in your IIS web-server
sleep 10 # Sleep for 10 seconds.
done
It seems you have the basics on how to create static html from a command. If you cannot work with CGI you can choose to direct the output to a flatfile (e.g., because you want the output of the last XX minutes).
Then, using cron, every YY minutes you run a second program to create static html in a fixed location that can be "browsed" without the need for CGI.
My apologies for the short answer, my tablet is winning this morning