Linux - Mobile This forum is for the discussion of all topics relating to Mobile Linux. This includes Android, Tizen, LiMo, Maemo, MeeGo, Openmoko, Ubuntu Mobile, WebOS, Firefox OS, Open Mobile Alliance and other similar projects and products.
A reminder that LQ now has a dedicated Android sister site: AndroidQuestions.org |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
06-30-2009, 03:58 AM
|
#1
|
|
LQ Newbie
Registered: Jun 2009
Posts: 2
Rep:
|
Getting Notification when disk space cross a threshold value
I am writing a programm on linux ( ubuntu)
i have a requirement that when the available disk ( hard disk ) space crosses a certain limit ( specified by me ) , then i should get a call back from the OS . can somebody tell me how to do that ?
I want this notification to come when any of the disks ( C drive , D Drive ... ) free space cross a specified thrreshold value.
Last edited by raikar; 06-30-2009 at 03:59 AM.
|
|
|
|
06-30-2009, 04:18 AM
|
#2
|
|
Member
Registered: Oct 2003
Location: UnitedKingdom
Distribution: Debian Lenny
Posts: 351
Rep:
|
confusing ...
you say linux and you also say 'C' and 'D' drive which is more unique to dos-like operating systems.
If you really want to keep a watch on disk space you can use this link
http://www.cyberciti.biz/tips/shell-...isk-space.html
do you want to mount 'C','D' drives of some other machines using samba into a central machine
and watch them ? The above script will anyway work for almost all the mounted cases.
|
|
|
|
06-30-2009, 05:11 AM
|
#3
|
|
LQ Newbie
Registered: Jun 2009
Posts: 2
Original Poster
Rep:
|
Quote:
Originally Posted by bhaslinux
confusing ...
you say linux and you also say 'C' and 'D' drive which is more unique to dos-like operating systems.
If you really want to keep a watch on disk space you can use this link
http://www.cyberciti.biz/tips/shell-...isk-space.html
do you want to mount 'C','D' drives of some other machines using samba into a central machine
and watch them ? The above script will anyway work for almost all the mounted cases.
|
Sorry for the confusion ,
I mean, i want to get notification from OS whevent the free space for any of the "mounted drives" goes below a threshold value .
|
|
|
|
06-30-2009, 05:50 AM
|
#4
|
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 11,227
|
Did you even read the script ?.
Won't take much to modify it - perhaps you should make some effort to do it yourself.
|
|
|
|
06-30-2009, 05:54 AM
|
#5
|
|
Senior Member
Registered: Aug 2006
Posts: 2,695
|
Quote:
Originally Posted by raikar
I am writing a programm on linux ( ubuntu)
i have a requirement that when the available disk ( hard disk ) space crosses a certain limit ( specified by me ) , then i should get a call back from the OS . can somebody tell me how to do that ?
I want this notification to come when any of the disks ( C drive , D Drive ... ) free space cross a specified thrreshold value.
|
See here for an example.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 06:54 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|