Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 95405 invoked from network); 30 May 2005 03:46:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 30 May 2005 03:46:36 -0000 Received: (qmail 71274 invoked by uid 500); 30 May 2005 03:46:30 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 71215 invoked by uid 500); 30 May 2005 03:46:29 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 71189 invoked by uid 99); 30 May 2005 03:46:29 -0000 X-ASF-Spam-Status: No, hits=3.9 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,FORGED_YAHOO_RCVD X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from web30209.mail.mud.yahoo.com (HELO web30209.mail.mud.yahoo.com) (68.142.200.92) by apache.org (qpsmtpd/0.28) with SMTP; Sun, 29 May 2005 20:46:26 -0700 Received: (qmail 31915 invoked by uid 60001); 30 May 2005 03:46:24 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=LgK439h8xMxkmGzyrlSgc/7lJffH604BuYP/Am1O+8VREChgUx8OW6qzWv2ckof+ItfXl6BWt04NsFo3jdmOXC/8EXDwN4qrOgLMeJmEd/AP5g/PE+vaeYeeo2ikE7SHuShglXZWp0+Yw640kHAscn4uJdW1TJjm6XlBkcrM1YA= ; Message-ID: <20050530034624.31913.qmail@web30209.mail.mud.yahoo.com> Received: from [71.8.196.227] by web30209.mail.mud.yahoo.com via HTTP; Sun, 29 May 2005 20:46:24 PDT Date: Sun, 29 May 2005 20:46:24 -0700 (PDT) From: Ninju Bohra Subject: Re: How to stop process using exec? To: Ant Users List In-Reply-To: <90B91B4B5C7D4646935754AB073511547103C8@ILMAIL> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Windows does not come with a "kill" utility by default. There is a "kill" utility in the NT resource kit (which useable on OSes above NT). There is also a enhanced PSKill utility from SysInternals (http://www.sysinternals.com) which you can use. The hardest part of killing a process (regardless of the OS) is determining someway to indentify the proces to the "kill" program. The PID (process ID) is usually the most exact way, however it difficult to obtain the PID externally. Some "kill" program (PSKill for example) can also take the process name. I would highly recommend NOT using the OS to kill a process. OS killing of process is a very messy deal (particulary on Windows) which can result in resource leakage, Protection faults and Process Termination Dialog boxes appearing. It is advisable to seek another way to accomplish your goal. Later, Ninju --- Nir Geier wrote: > hi all, > > Does anyone knows how can I stop process under > windows? > > For example: > executing the following (Under Windows): > > > > > > > > is there any way to write ant to stop the target? > > Nir Geier. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > user-unsubscribe@ant.apache.org > For additional commands, e-mail: > user-help@ant.apache.org > > __________________________________ Yahoo! Mail Stay connected, organized, and protected. Take the tour: http://tour.mail.yahoo.com/mailtour.html --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org