Re: generate HTML
From: Alan Connor (zzzzzz_at_xxx.yyy)
Date: 10/29/04
- Next message: Stephane CHAZELAS: "Re: Check for special character"
- Previous message: John Savage: "Re: Using Sed to swap two lines in a file"
- In reply to: Petterson Mikael: "generate HTML"
- Next in thread: Ilya Sher: "Re: generate HTML"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 29 Oct 2004 06:43:33 GMT
On Thu, 28 Oct 2004 12:31:31 +0200, Petterson Mikael
<mikael.petterson@ericsson.se> wrote:
> Hi,
>
> I have a script that makes nightly builds (with different
> config spec:s) of java applications. My problem is that I need
> to present the result on a web page.
>
> I need some good advice on how to proceed.
>
> Shall I generate information to a log and then parse the log
> and transform it into HTML? Are there any easy tools for this?
>
> All advice is very welcome.
>
> //Mikael
>
How fancy does the HTML have to be? You can use this to wrap any
text to be displayed just as it is (call the *file* blank.html
for the moment):
<html><head><title>whatever</title></head><body><pre>
insert text here
</pre></body></html>
With that in a file (sans "insert text here"), all you have to
do is use sed or ed or vi to insert the text you want and the
title and ftp it up to the server.
#!/bin/bash
ed -s blank.html <<XXX
/<pre>/r logfile
wq
XXX
That would insert logfile after the HTML header and before the
HTML footer.
AC
- Next message: Stephane CHAZELAS: "Re: Check for special character"
- Previous message: John Savage: "Re: Using Sed to swap two lines in a file"
- In reply to: Petterson Mikael: "generate HTML"
- Next in thread: Ilya Sher: "Re: generate HTML"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|