Getting Notification when disk space cross a threshold value
Linux - MobileThis forum is for the discussion of all topics relating to Mobile Linux. This includes Android, Tizen, Sailfish OS, Replicant, Ubuntu Touch, webOS, and other similar projects and products.
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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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 .
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.