![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How do I extract text only from html file without HTML tag | los111 | UNIX for Dummies Questions & Answers | 4 | 11-28-2007 01:40 AM |
| coverting html data to text in 'c' | phani_sree | High Level Programming | 3 | 10-18-2007 07:06 AM |
| HTML message with attachment (text-file) | Felix2511 | UNIX for Dummies Questions & Answers | 2 | 09-11-2007 11:59 PM |
| Send an attachment and html text both in the same mail | stefan.yu | Shell Programming and Scripting | 4 | 10-26-2006 06:46 PM |
| linking unix generated text file to html page | alexd | Shell Programming and Scripting | 1 | 11-13-2002 09:21 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
html - text file question
Hi - not sure if this is the correct forum but maybe you can help all the same.
I have an ascii file on my server that I log events to.. I have samba and apache running on this server also - although I am not currently using them and have just started them up. They both appear fine so far. I want to display a basic html page that will display the contents of the ascii file and refresh every 60 seconds... Can anyone get me started? I have little experience of HTML but am okay on shell scripting etc... |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
I think you can do this using
shell scripting and html In html you can use the meta tag for refreshing the page Hope this helps Regards, Jags |
|
#3
|
|||
|
|||
|
Can anyone help with some sample html for this?
|
|
#4
|
||||
|
||||
|
dynamically prepare 1.html every 60 seconds with latest body content of 1.html
1.html should look something like this <html> <head><title>....</title> <meta http-equiv="refresh" content="60"; URL="http://xyz.com/1.html > </head> <body> Here will come the file content prepared dynamically </body> </html> regards, rishi |
|
#5
|
|||
|
|||
|
Okay - is there any way to tell the html page when it refreshes to re-read the entries from the log file?
I suppose that the update the html content with a script will do it I was just wodnering if there was anything a little bit more intelligent to do with this here... |
|
#6
|
||||
|
||||
|
Using server scripts to create the page by reading from a file what you require can be done, now how you will read the log file depends which scripting language you are using,it could be either asp,php or whatever
rishi |
||||
| Google The UNIX and Linux Forums |