By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,597 Members | 1,672 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,597 IT Pros & Developers. It's quick & easy.

service list using c

P: n/a
hi guys

i m fresher to linux programming, and i want to list out the available
service in linux i.e. i want to print name of service, location of
service, startup type, and status of information using c library.

but the problem is i don't know which function/structure is helped to
list out this all, or if any command then please suggest me or if any
source of c program is available then please forwarded to me..

thanks in advance

chandrakant

Nov 9 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a

"so*****************@gmail.com wrote:
"
hi guys

i m fresher to linux programming, and i want to list out the available
service in linux i.e. i want to print name of service, location of
service, startup type, and status of information using c library.

but the problem is i don't know which function/structure is helped to
list out this all, or if any command then please suggest me or if any
source of c program is available then please forwarded to me..

thanks in advance

chandrakant
This is also off-topic here. Please post it to comp.unix.programmer or
comp.os.linux.development.apps.

Hint: Try to use /proc filesystem of Linux to get those information.

Nov 9 '06 #2

P: n/a
so*****************@gmail.com wrote:
i m fresher to linux programming, and i want to list out the available
service in linux i.e. i want to print name of service, location of
service, startup type, and status of information using c library.

but the problem is i don't know which function/structure is helped to
list out this all, or if any command then please suggest me or if any
source of c program is available then please forwarded to me..
Neither do we. Try a linux group.

--
Chris ".enable proofreading" Dollin
"No-one here is exactly what he appears." G'kar, /Babylon 5/

Nov 9 '06 #3

P: n/a

so*****************@gmail.com wrote:
hi guys

i m fresher to linux programming, and i want to list out the available
service in linux i.e. i want to print name of service, location of
service, startup type, and status of information using c library.

but the problem is i don't know which function/structure is helped to
list out this all, or if any command then please suggest me or if any
source of c program is available then please forwarded to me..
While you may find C a useful language to do this task, the task is not
really about the C language itself - you'll need to find the
appropriate APIs for the specific platform you are using.

As others have pointed out, you may find more direct guidance from a
Linux newsgroup.

Nov 9 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.