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

Forum statistics

Threads
474,077
Messages
2,570,566
Members
47,202
Latest member
misc.

Latest Threads

Top