Hi
I am in need of a way to find if a list of processes are running in a
linux machine (periodically from a C program). The only way which I knew
was to use the system() function call and call "ps -a" or a variant of
that. I came to know that system() is not a safe function call. Is there
any other way in which I can get that information ( say read any file from
the /proc directory or something like that??). This is an embedded system with
no user interaction so it has to be done automatically and in a safe way.

Also is there a way to make a program not to dump core if it seg faults?

I am running Linux 2.2.14 kernel ( Stripped down version of RH 6.2) in my
machine.

Thanks for the information.

Sreekumar


_______________________________________________
Twin Cities Linux Users Group Mailing List - Minneapolis/St. Paul, Minnesota
http://www.mn-linux.org tclug-list at mn-linux.org
https://mailman.real-time.com/mailman/listinfo/tclug-list