From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6209 invoked by alias); 15 Nov 2004 11:58:07 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 6188 invoked from network); 15 Nov 2004 11:58:02 -0000 Received: from unknown (HELO main.gmane.org) (80.91.229.2) by sourceware.org with SMTP; 15 Nov 2004 11:58:02 -0000 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1CTfUf-0003s4-00 for ; Mon, 15 Nov 2004 12:58:01 +0100 Received: from 85-64-6-109.barak.net.il ([85.64.6.109]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 15 Nov 2004 12:58:01 +0100 Received: from alexvn by 85-64-6-109.barak.net.il with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 15 Nov 2004 12:58:01 +0100 To: gcc-help@gcc.gnu.org From: "Alex Vinokur" Subject: Re: How o acheive this in C++ Date: Mon, 15 Nov 2004 11:58:00 -0000 Message-ID: References: X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 85-64-6-109.barak.net.il X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-SW-Source: 2004-11/txt/msg00068.txt.bz2 "Lalit Seth" wrote in message 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