
Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [tlug] Uptime to web site
Dear Sajjad Zaidi,
I tried you script but there is something confusing with it!!!?? it
generates no output!
It seems that a direct uptime command in a shell works fine updating the
time to a blank page uptime.html
"uptime > /home/mydir/uptime.html"
The end result looks like:
2:31pm up 1 day, 3:07, 1 user, load average: 0.00, 0.02, 0.05
The code looks like this:
<html>
<head>
</head>
<body>
2:31pm up 1 day, 3:07, 1 user, load average: 0.00, 0.02, 0.05
</body>
</html>
On Tue, 2002-08-20 at 14:04, A. Sajjad Zaidi wrote:
> -----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
>> I tried you script but there is something confusing with it!!!??
>>
>>It seems that a direct "uptime > /home/mydir/uptime.html" works fine
>>appending the time to a blank page uptime.html
>
>
Home |
Main Index |
Thread Index