This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How o acheive this in C++


"Lalit Seth" <laalit_seth@hotmail.com> wrote in message BAY2-F24coCru4efxId000194d6@hotmail.com">news:BAY2-F24coCru4efxId000194d6@hotmail.com...
> Hi,
>
> 1) how do i get the PID from a process of which i know the name only
>
> 2) how can i send a signal to a process of which I have the PID
>
> I wanted this information from C++ Code not from shell.
>
[snip]

Via popen().

-- 
 Alex Vinokur
     email: alex DOT vinokur AT gmail DOT com
     http://mathforum.org/library/view/10978.html
     http://sourceforge.net/users/alexvn





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]