[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: Cody Watkins <codyw@xxxxxxxxxxxxxxxxx>
- Date: Mon Aug 21 22:15:05 2000
This is it below:
------------------------------------------
#!/usr/bin/perl
chop($uptime = `uptime`);
@_=split(" ",$uptime);
$updays=@_[2];
$uphours=@_[4];
print ("Content-Type:text/html\n\n");
print "This server has been up for $updays days and $uphours hours.";
exit;
--------------------------------------
Hope it works for you.
Sincerely,
Cody Watkins
________________________________________________
Paradox Web Hosting
codyw@xxxxxxxxxxxxxxxxxxxxx
www.paradoxwebhosting.com
At 09:54 PM 8/21/00 -0700, you wrote:
>At 8:10 PM -0700 8/21/00, Cody Watkins wrote:
>>I want to show the number of days my RaQ3 has been up for in a Perl Cgi
>>script. I found a script to call the following up:
>>
>>6:58pm up 43 days, 3:38, 1 user, load average: 0.05, 0.05, 0.05
>>
>
> Hey, why not throw out the script that you are using - with
>the limitations described, above - for everyone? Might be fun to use
>this in an include(SSI) tag. Should work.
>
> I'd like to see the CGI script for this. Would you Email me?
>
>
>
>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
> -------------------------------------------------------------------
>
>
>_______________________________________________
>cobalt-users mailing list
>cobalt-users@xxxxxxxxxxxxxxx
>To Subscribe or Unsubscribe, please go to:
>http://list.cobalt.com/mailman/listinfo/cobalt-users
>