Source code for "pgrep"

D

Deniz Dogan

Hello.

I am writing a program which has to send a signal (SIGUSR2 F.Y.I.) to a
certain process, which I only know the name of, i.e. I need the PID for
that process. How can I do this in C or C++?
Also, I want to know where I can find the source code for the "pgrep"
program.

Thanks in advance.
 
B

Ben Pfaff

Deniz Dogan said:
I am writing a program which has to send a signal (SIGUSR2 F.Y.I.) to
a certain process, which I only know the name of, i.e. I need the PID
for that process. How can I do this in C or C++?

This question would be better asked in comp.unix.programmer or a
newsgroup specific to your actual operating system.
Also, I want to know where I can find the source code for the "pgrep"
program.

http://procps.sourceforge.net/
 
G

Guru Jois

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,472
Messages
2,571,834
Members
48,802
Latest member
shadowoftheunknown
Top