Home     |     .Net Programming    |     cSharp Home    |     Sql Server Home    |     Javascript / Client Side Development     |     Ajax Programming

Ruby on Rails Development     |     Perl Programming     |     C Programming Language     |     C++ Programming     |     IT Jobs

Python Programming Language     |     Laptop Suggestions?    |     TCL Scripting     |     Fortran Programming     |     Scheme Programming Language


 
 
Cervo Technologies
The Right Source to Outsource

MS Dynamics CRM 3.0

C Programming Language

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

Add to del.icio.us | Digg this | Stumble it | Powered by Megasolutions Inc