|
 |
 |
 |
 |
Source code for "pgrep"
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.
--
Deniz Dogan
Deniz Dogan <kristn@nospam.com> writes:
> 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/
--
"I'm not here to convince idiots not to be stupid.
They won't listen anyway."
--Dann Corbit
On Jun 2, 9:24 am, Deniz Dogan <kristn@nospam.com> wrote:
> 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.
> --
> Deniz Dogan
You can find source code for 'pgrep' on Solaris box here
http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/cmd/pgr...
Bye
Guru Jois
|
 |
 |
 |
 |
|