[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] [OT] Showing uptime - Final results
- Subject: Re: [cobalt-users] [OT] Showing uptime - Final results
- From: "Steven Werby" <steven-lists@xxxxxxxxxxxx>
- Date: Wed Aug 23 09:31:57 2000
Patrick Béart <patrick@xxxxxxxxxxxxxxxxxxx> wrote:
> 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.
Well, email access is more common place than web access. If you want to check
the output of uptime from a cell phone or pager having it sent via email would
make sense. Of course, you probably wouldn't want an email sent every time
someone viewed a web page containing the Perl script that was posted. You'd
want to call the script in a cron job periodically. And you could avoid that
Perl script entirely by putting the following in a cron job:
uptime | mail admin
--
Steven Werby {steven-lists@xxxxxxxxxxxx}