Re: script

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



On Mon, Jul 28, 2008 at 3:33 AM, Mad Unix <madunix@xxxxxxxxx> wrote:
>
>
> Hi ALL
>
>
> #!/bin/sh
> # Shell script to monitor or watch the disk space

I use this one-liner:

df -P| awk '$5+0>90{print $0|"mutt -s df-k@`hostname` user@xxxxxxxxxx"}'

Probably, you should add -t ext3 to avoid reporting nfs or other
special filesystems...

--
Marcelo

"¿No será acaso que ésta vida moderna está teniendo más de moderna que
de vida?" (Mafalda)
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux