[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Grep more than one
- Subject: Re: [cobalt-users] Grep more than one
- From: Gerald Waugh <gwaugh@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed Aug 6 05:41:00 2003
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
On Wed, 6 Aug 2003, Anders wrote:
> Rene Molsted wrote:
> > Curently i use this for getting temperatur on our servers:
> > cat /proc/cpuinfo | grep temp
> > How can i add another grep so i get eg. both tmep and uptime
>
> cat /proc/cpuinfo | egrep "temp|uptime"
>
> However, my RaQ doesn't have uptime in cpuinfo but in uptime ?
>
maybe.
[gwaugh gwaugh]$ cat /proc/cpuinfo | grep temperature; uptime
temperature : 39
8:28am up 42 days, 1:02, 1 user, load average: 5.00, 5.03, 5.00
Of course if you want an email;
cat /proc/cpuinfo | grep temperature > .stats; uptime >> .stats; \
cat .stats | mail -s stats admin; rm .stats
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