Re: How o acheive this in C++

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Lalit Seth" <laalit_seth@xxxxxxxxxxx> wrote in message news:BAY2-F24coCru4efxId000194d6@xxxxxxxxxxxxxx
> 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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux