The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]
FreeBSD Support
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Previous Message  |  Next Message 
 Re: File system Full
Author: k 
Date:   11-02-03 17:27

Well you could do something like this in a script to email you when
a filesystem has reached 90% (adjust to your preference):

IFS="

"
for FILESYSTEM in `df -k`
do
if [ "`echo $FILESYSTEM | awk '{print $5}'`" -gt "90" ]
then
echo $FILESYSTEM | mail -s "Filesystem Notice" you@you.com

fi
done

 Reply To This Message  |  Forum List  |  Flat View   Newer Topic  |  Older Topic 

 Topics Author  Date
 File system Full   new
Greg Hicks 11-02-03 14:34 
 Re: File system Full   new
k 11-02-03 17:27 
 Re: File system Full   new
k 11-02-03 18:58 
 Re: File system Full   new
Dan Langille 11-02-03 17:28 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org