473,569 Members | 2,747 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

service list using c

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
3 1528

"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.progr ammer or
comp.os.linux.d evelopment.apps .

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

Nov 9 '06 #2
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

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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
1939
by: Rogue9 | last post by:
Hi, I´m trying to retrieve an item from a list using a reference called ´draw´' (which is an integer from 1 to 792 in a while loop) using:- draw = 1 while 1: if draw == 792: break b1 = someOtherList r1 = b1
4
3497
by: razvan | last post by:
I need advice about adding security to a web service without using WSE, as the clients will run Win98.
1
3320
by: rllioacvuher | last post by:
I need help with a program. I have implemented that following header file with an unordered list using one array, but i need to be able to use an ordered list and 2 arrays (one for the links and one to use as an index to the freearray cells). Here is the exact problem specifications: Create an ordered list template class named OLType to...
2
1342
by: Kim Floyd | last post by:
We have an application that uses .Net remoting to allow remote servers to connect to a master server to synchronize data. The format of the url we use to the master server looks like “tcp://master.company.com/wilson.server”. If the IP address of the master server changes the remote server keep using to old IP address until they are...
2
3536
nabh4u
by: nabh4u | last post by:
hi friends, i have a program where i have to sort a double linked list using merge sort. i am having problem with changing the pointers of the list, like the previous and the next pointers of a node. i am unable to understand how can i change those. i tried something but that is not working. please help me as soon as possible as i have a...
1
2114
by: Colin | last post by:
I created a walkthrough for "How to call a Web service by using a client certificate for authentication in an ASP.NET Web application"using makecert, certutil, WinHttpCertCfg.exe X509Certificate. You can find it here: http://igottools.com/Lists/Posts/Post.aspx?ID=11 Hope it helps you guys making client authentication via webservices to...
10
15006
by: Debajit Adhikary | last post by:
I have two lists: a = b = What I'd like to do is append all of the elements of b at the end of a, so that a looks like: a =
1
2165
Vkas
by: Vkas | last post by:
hi I am Working in Moss ! My target is to populate the share point list using asp.net web Application I had Create a website is Asp.net with a simple form having 3 text field and a button I had created a list in the Share point site named as "test" having 3 fields I.e(Name, address and Phone No) Target I want to populate that list of...
0
7694
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7609
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7921
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8118
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7964
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5217
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3636
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1208
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
936
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.