[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Have CPU info sent via mail



On Sun, 8 Jun 2003, Ren[ISO-8859-1] é Mølsted wrote:

> Hi y'all
> I'm looking for at way of having theese output sent via mail from a cronjob
> containing this:

 make a crontab, of course setup the period, for execution

 cat /proc/cpuinfo | grep temperature | mail -s temperature admin
 cat /proc/meminfo | mail -s meminfo admin
 cat /proc/loadavg | mail -s loadavg admin

or

cat /proc/cpuinfo | grep temperature > .stats; cat /proc/meminfo >>
.stats; cat /proc/loadavg >> .stats; cat .stats | mail -s server-stats
admin

All on one line, will send to admin, or replace admin with another address

Gerald
--
http://frontstreetnetworks.com | http://store.raqware.com
  Front Street Networks LLC, 229 Front Street, Ste.#C
  New Haven, CT 06513-3203 | phone: +1-203-785-0699