How to generate HTML page from UNIX script out-put?
Hi All.
This my first post to this forum, and i assuming it will be best out-of all.
I am quite new to Unix scripting so please excuse me for any silly questions -
I am trying to create on Unix script in which it telnet to my server, check the connectivity of the server and then it generate the out-put.
I am getting correct output and everything is fine.
Now i want to extend that to some extend -
Now i want to the output of the script i should get in HTML formats in email.
-----------------------------------------------------------------------
So will it possible to generate HTML out-put and send to my mail box ?
Moderator's Comments:
edit by bakunin: two thirds of your post were redundant FONT-, SIZE-, and whatnot-tags, which i just cleared out. Many thanks for creating that work for me, i wouldn't know what to do the whole day otherwise. The only tag you should have used - the CODE-tag - was missing, so i put it in. Was there anything not understandable in "Please use CODE-tags"? Or was it the button for the CODE-tag, which is so deceptively labeled "CODE"?
In the function you write a file "tap" which you never use subsequently. Instead you use a file "asap.log", which should be filled with the <stdout> of the function, but there is none, as the only possible output is redirected to "tap".
Your script contains severe syntax errors ("if" without a closing "fi") and can never have run the way you present it.
Look at any HTML-document and you will notice that it is clear text with a fixed structure and tags mixed with the text. Search the web for any HTML reference (there is an abundance of them) and most of them will not only explain the general structure of such an HTML file but also the meaning of every tag. Consult such a reference/introduction and write such a file using "print" (if you use ksh) or "echo" (if you use bash) or whatever output command your shell has - finished.
Hi,
Is there any UNIX scripts out there that generates a listing output of some sort similar to OraSnap
At the moment, I have a script that I run on multiple servers that has multiple databases and just querying the database sizes of those databases. It generates a text files that contains... (0 Replies)
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... (12 Replies)
Hello All,
I need help here with a script. I have a script here which generates a html output with set of commands and is working fine.
Now i want to add a new command/function which would run on all the remote blades and output should be included in this html file. Here is the script
... (2 Replies)
Hi,
Need Help, Recently I have thought to migrating my Korn Shell Scripts to html page..., already webserv is running on my unix machine.
How to migrate the shell scripts to html page..
Please refer any web portal or sample codes. Thanks in Adavce (2 Replies)
i have a problem situation, where i have a html file say click.html. i have a button "ls" in that html page. i run this html file in windows....Now say if i click that "ls" button it must connect to the unix server and execute ls and return the results back to html page in windows. can anyone tell... (8 Replies)
I want to create a login page in HTML which is hosted on apache server.
The login page first authenticate the user and then directed to a form which in turn run a script on the server.
I want to make login page without php or jsp.
Please advice. (13 Replies)
Hi Friends
I have an requirement that i need to generate html file using script.
and the script output shold keep adding to that html file like tablewise.
can anyone please help me out in this.
thanks
Krish. (2 Replies)
Hi All,
I need a basic overview of connecting a HTML web page to Unix
I will give a brief of my exact requirement.
There will be a front end HTML page - a web page which will have certain buttons.
Each button will have certain functionality.
For eg: There is a button for Disk Usage. When the... (1 Reply)
i am trying to link the text files that i generated from my shell script to an html page, to that i can view them using a browser, like internet explorer.
i want to open the text files in html page when i enter a command to view the text file from the shell command.
please could anyone help... (1 Reply)
LINK:
Unix Manual (man page) pages in HTML
http://www.rt.com/man/
: More then 100 Commands found on a Unix system mannual pages can be obtained/refered here. Good Link.. (1 Reply)