At 5:38 AM -0500 8/23/00, Frank Cubillos wrote:
This script emails these results? If so to whom? (admin?) TIA
The script "prints" the output - right now, for me, that means it outputs the results to the Web page since I'm using a SSI "exec" command. No doubt you could get it to send the the results in Email, but what would be the point of that? You can go into the GUI to see your uptime, if you wish.
Patrick Beart
> >At 10:12 PM -0700 8/21/00, Cody Watkins wrote:>>This is it below: (then addiing Stew Smith's "comma breaker"/$token lines:) > >------------------------------------------ >> >>#!/usr/bin/perl >> >>chop($uptime = `uptime`); >>@_=split(" ",$uptime); >>$updays=@_[2]; > >$uphours=@_[4]; > if ($uphours =~ /\S,$/) > { chop $uphours; } >>print ("Content-Type:text/html\n\n"); >>print "This server has been up for $updays days and $uphours hours."; >>exit; >>> > >--------------------------------------
-- ------------------------------------------------------------------- patrick@xxxxxxxxxxxxxxxxxxx 503-558-8322 Clackamas(Portland), OR Web Architecture: http://www.WebArchitecture.comIntelligent 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 -------------------------------------------------------------------