Pentru asta ai putea sa pui in inetd.conf ca server un script bash care
sa faca

#!/bin/bash
echo "Content-type: text/html"
echo
echo "<pre>Mesaj</pre>"
echo
echo
sleep 2


si in /etc/inetd.conf

80    stream  tcp     nowait  news    /usr/sbin/tcpd  /root/test


Asta e asa, o solutie de doi bani care se poate completa cu ceva care sa
trimita ceva comform protocolului HTTP - sa nu mai dea eroare la sfarsit 
(se poate spiona ce trimite un server adevarat daca este accesat).

On Wed, 13 Jun 2001, Mircea S. wrote:

> 
> Salut!
> 
> Erau de gasit la un momentdat pe net mini servere de web scrise in
> Perl...
> 
> Stiti de unde pot lua unul bun? Plz, fara "scrie-ti tu unul ca e simplu"
> (sorry, nu prea am timp sa bibilesc la asa ceva).
> 
> Mi-ar trebui numai ca se le servesc o pagina de genul "Server is down
> for upgrading" etc. celor ce acceseaza site-ul in timpul zilei daca sunt
> nevoit sa opresc Apache-ul... ca sa stie ce se intampla...
> 
> Mircea
> 
> 
> ---
> Send e-mail to '[EMAIL PROTECTED]' with 'unsubscribe rlug' to 
> unsubscribe from this list.
> 
> 

-- 
 Cele bune.                                    +------ Mihai Voicu ------+
                                               |   RDS network engineer  |
                                               | http://mihvoi.rdsnet.ro |
--------------------------------------------------------------------------
Privileged/Confidential Information may be contained in this message. If
you are not the addressee indicated in this message (or responsible for
delivery of the message to such person), you may not copy or deliver this
message to anyone. In such a case, you should destroy this message and
kindly notify the sender by reply e-mail.

---
Send e-mail to '[EMAIL PROTECTED]' with 'unsubscribe rlug' to 
unsubscribe from this list.

Raspunde prin e-mail lui