[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] OT: Showing uptime via web
- Subject: RE: [cobalt-users] OT: Showing uptime via web
- From: Patrick Béart <patrick@xxxxxxxxxxxxxxxxxxx>
- Date: Tue Aug 22 20:26:45 2000
At 6:26 PM -0700 8/22/00, Stew Smith wrote:
> Well, if you can tell me how to get rid of that "comma" in
the output, then I can tell you which permissions to give the script
to make it work with CGI-Wrapper.
To conditionally get rid of a comma, try this expression:
if ($token =~ /\S,$/)
{ chop $token; }
...which removes the last character of $token if it is a comma.
Thanks. That worked. : )
The first time that I tried the above two lines, added to the
previous script, the output read:
"This server has been up for 53 days and 57 hours."
... Which was ridiculous. I reloaded the page and it showed a
reasonable time (hours/minutes). Hopefully it will hold and stay
under 12 hours, permanently.
If it does, I owe you a beer! ; )
Patrick Beart
--
-------------------------------------------------------------------
patrick@xxxxxxxxxxxxxxxxxxx 503-558-8322 Clackamas(Portland), OR
Web Architecture: http://www.WebArchitecture.com
Intelligent Internet consulting, site development, and hosting
solutions since 1994
* Founding MEMBER -- Internet Professionals Northwest. (www.ipn.org)
* MEMBER -- Webmaster's Guild/ Association of Internet Professionals
-------------------------------------------------------------------