
Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [tlug] Uptime to web site
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tue, Aug 20, 2002 at 01:05:42PM +0900, Eric O. Flores wrote:
> I am generating static pages.
> Someone put a nice script for the cgi bin directory.
> I will try his script and look at the end result.
You could also run a cronjob as often as you like and generate a page
from it. Something like this will work for a simple page that shows the
uptime in days:
echo "<html><head></head><body> \
`uptime | awk '{ print $3" days" }'` \
</body></html>" > /home/www/uptime.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE9Yc3it1KjqyZ+DQ4RAoLZAKCQqNVDFNIWPmsR20OrOfzAXYLttwCgij0Z
6X4z4kcKjgY6UOC41ifUiNE=
=cMK9
-----END PGP SIGNATURE-----
Home |
Main Index |
Thread Index