[Gllug] Tail and Apache

Alistair Mann alistair at lgeezer.net
Tue Jul 8 11:56:30 UTC 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thus spaketh Simon Faulkner on Tuesday 08 July 2003 10:32 am:
> I would like to show the ongoing results of a log file using tail and a cgi
> shell script:
>
> #!/bin/csh
> echo "Content-type: text/html"
> echo ""
> echo "<H3>LOG"</H3>"
> echo "<P>"
> echo "<PRE>"
> /usr/bin/tail -n 100 -f /var/log/mylog
>
>
>
> This works :-)
>
> But will apache ever kill the process when people close their browsers?

Yes. 

> What would the 'proper' way to do this be?

There's nothing 'improper' about what you have above. In fact, it's an 
excellent solution. 
- -- 
Alistair
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE/CrFuEz+/jt85AfsRAsntAJ9kxxQhH8J2ceNkgn4fcxM6Gv8vCwCfXSIP
q0WjQvcsRzFHWq78vsU8uAY=
=YgL1
-----END PGP SIGNATURE-----


-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list