473,385 Members | 1,622 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

which function should I use to list all of the FILE SYSTEMS in UNIX??

I want to make a program to minitor the usages of all of the file systems on
my AIX or Linux systems.
But I will not use shell commands like "df -k" for some FILE SYSTEMS maybe
not mounted and "df -k" will not collect info about that FILE SYSTEM ,so I
want to obtain theses info from system calls or lib functions .

First I want to list all the FILE SYSTEMS on my OS ,which c function should
I use ?

Thanks!
Aug 15 '08 #1
4 1290
Tommy wrote:
I want to make a program to minitor the usages of all of the file systems on
my AIX or Linux systems.
comp.unix.programmer is down the hall.

--
Ian Collins.
Aug 15 '08 #2
oh, I will post there.
thank you!
"Ian Collins" <ia******@hotmail.com>
??????:6g************@mid.individual.net...
Tommy wrote:
>I want to make a program to minitor the usages of all of the file systems
on
my AIX or Linux systems.

comp.unix.programmer is down the hall.

--
Ian Collins.

Aug 15 '08 #3
Tommy wrote:
>
oh, I will post there.
thank you!
When you do, don't top-post.

--
[mail]: Chuck F (cbfalconer at maineline dot net)
[page]: <http://cbfalconer.home.att.net>
Try the download section.
Aug 15 '08 #4
On 15 Aug 2008 at 10:10, Tommy wrote:
I want to make a program to minitor the usages of all of the file systems on
my AIX or Linux systems.
But I will not use shell commands like "df -k" for some FILE SYSTEMS maybe
not mounted and "df -k" will not collect info about that FILE SYSTEM ,so I
want to obtain theses info from system calls or lib functions .
To find out about filesystems currently mounted, check out getmntent()
and friends.

To find out about all filesystems listed in /etc/fstab, whether mounted
or not, check out getfsent() and friends.

These are not POSIX functions, but they're very common - I think
available both in AIX and Linux.

Aug 15 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Weekend | last post by:
Currently, i want to develope a multiple choice exam website. The content of the test is store in an XML file. I want to carry out some function. Could you tell me which programming language should...
5
by: Prakash T. | last post by:
Dear friends, This is Prakash from in India at tamilnadu. I am a MCA Student. Please answer the Que: Mention the type of applications which can be developed using C language? Thanks and...
21
by: siroregano | last post by:
Hi Everyone- I'm new to this group, and almost-as-new to asking programming questions publicly, so please forgive me if I miss a convention or two! I have a text file, around 40,000 lines...
7
by: roopeman | last post by:
i can search objects in AD,someone can tell me how to get the online Computers in AD ?
12
by: sunil | last post by:
Hi All, Please have a look the below program #include<stdlib.h> int i = system("pwd"); I compiled the above program in UNIX ,it got compiled and executed with out any errors.It prints the...
6
by: JM | last post by:
I have never used a (content management system) CMS before but I need one for my internship as a webdeveloper. Requirements: runs on Apache, linux or unix, MySQL and PHP (maybe Windows server...
9
by: tubby | last post by:
Silly question, but here goes... what's a good way to determine when a file is an Open Office document? I could look at the file extension, but it seems there would be a better way. VI shows this...
14
by: gio | last post by:
I have a problem and the solution should works under windows and unix OS. Suppose I have a program ex.c in the directory X (so the current working directory of ex.c is X). Also suppose I have...
3
by: laredotornado | last post by:
Hi, Can anyone provide a function that can validate if a string would pass as a valid Unix (specifically Fedora Core 8 Linux) file name? For example, I'm fairly certain one of the rules is that...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.