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"?
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
Discussion started by: newbie_01
0 Replies
LEARN ABOUT PHP
strip_tags
STRIP_TAGS(3) 1 STRIP_TAGS(3)strip_tags - Strip HTML and PHP tags from a stringSYNOPSIS
string strip_tags (string $str, [string $allowable_tags])
DESCRIPTION
This function tries to return a string with all NULL bytes, HTML and PHP tags stripped from a given $str. It uses the same tag stripping
state machine as the fgetss(3) function.
PARAMETERS
o $str
- The input string.
o $allowable_tags
- You can use the optional second parameter to specify tags which should not be stripped.
Note
HTML comments and PHP tags are also stripped. This is hardcoded and can not be changed with $allowable_tags.
Note
This parameter should not contain whitespace. strip_tags(3) sees a tag as a case-insensitive string between < and the first
whitespace or >.
Note
In PHP 5.3.4 and later, you will also need to include the self-closing XHTML tag to strip these from $str. For example, to
strip both <br> and <br/>, you should use:
<?php
strip_tags($input, '<br><br/>');
?>
RETURN VALUES
Returns the stripped string.
CHANGELOG
+--------+---------------------------------------------------+
|Version | |
| | |
| | Description |
| | |
+--------+---------------------------------------------------+
| 5.3.4 | |
| | |
| | strip_tags(3) no longer strips self-closing XHTML |
| | tags unless the self-closing XHTML tag is also |
| | given in $allowable_tags. |
| | |
| 5.0.0 | |
| | |
| | strip_tags(3) is now binary safe. |
| | |
+--------+---------------------------------------------------+
EXAMPLES
Example #1
strip_tags(3) example
<?php
$text = '<p>Test paragraph.</p><!-- Comment --> <a href="#fragment">Other text</a>';
echo strip_tags($text);
echo "
";
// Allow <p> and <a>
echo strip_tags($text, '<p><a>');
?>
The above example will output:
Test paragraph. Other text
<p>Test paragraph.</p> <a href="#fragment">Other text</a>
NOTES
Warning
Because strip_tags(3) does not actually validate the HTML, partial or broken tags can result in the removal of more text/data than
expected.
Warning
This function does not modify any attributes on the tags that you allow using $allowable_tags, including the style and onmouseover
attributes that a mischievous user may abuse when posting text that will be shown to other users.
Note
Tag names within the input HTML that are greater than 1023 bytes in length will be treated as though they are invalid, regardless
of the $allowable_tags parameter.
SEE ALSO htmlspecialchars(3).
PHP Documentation Group STRIP_TAGS(3)