The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
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

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 09-20-2005
Registered User
 

Join Date: Aug 2003
Location: Ireland
Posts: 269
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...
Reply With Quote
Forum Sponsor
  #2  
Old 09-20-2005
Registered User
 

Join Date: Jun 2005
Posts: 5
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
Reply With Quote
  #3  
Old 09-20-2005
Registered User
 

Join Date: Aug 2003
Location: Ireland
Posts: 269
Can anyone help with some sample html for this?
Reply With Quote
  #4  
Old 09-20-2005
RishiPahuja's Avatar
Registered User
 

Join Date: Apr 2005
Location: Bangalore, India
Posts: 203
Talking

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
Reply With Quote
  #5  
Old 09-20-2005
Registered User
 

Join Date: Aug 2003
Location: Ireland
Posts: 269
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...
Reply With Quote
  #6  
Old 09-21-2005
RishiPahuja's Avatar
Registered User
 

Join Date: Apr 2005
Location: Bangalore, India
Posts: 203
Thumbs up

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
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 11:56 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0