The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 and shell scripting languages 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 04:40 AM
coverting html data to text in 'c' phani_sree High Level Programming 3 10-18-2007 10:06 AM
HTML message with attachment (text-file) Felix2511 UNIX for Dummies Questions & Answers 2 09-12-2007 02:59 AM
Send an attachment and html text both in the same mail stefan.yu Shell Programming and Scripting 4 10-26-2006 09:46 PM
linking unix generated text file to html page alexd Shell Programming and Scripting 1 11-13-2002 12:21 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-20-2005
frustrated1 frustrated1 is offline
Registered User
  
 

Join Date: Aug 2003
Location: Ireland
Posts: 278
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...
  #2 (permalink)  
Old 09-20-2005
itzcoolbuddy itzcoolbuddy is offline
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
  #3 (permalink)  
Old 09-21-2005
frustrated1 frustrated1 is offline
Registered User
  
 

Join Date: Aug 2003
Location: Ireland
Posts: 278
Can anyone help with some sample html for this?
  #4 (permalink)  
Old 09-21-2005
RishiPahuja's Avatar
RishiPahuja RishiPahuja is offline
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
  #5 (permalink)  
Old 09-21-2005
frustrated1 frustrated1 is offline
Registered User
  
 

Join Date: Aug 2003
Location: Ireland
Posts: 278
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 (permalink)  
Old 09-21-2005
RishiPahuja's Avatar
RishiPahuja RishiPahuja is offline
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
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:18 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0