Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 10554 invoked from network); 24 May 2007 17:07:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 May 2007 17:07:07 -0000 Received: (qmail 26913 invoked by uid 500); 24 May 2007 17:07:07 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 26886 invoked by uid 500); 24 May 2007 17:07:07 -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 26875 invoked by uid 99); 24 May 2007 17:07:07 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 May 2007 10:07:07 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [203.84.221.125] (HELO web8704.mail.in.yahoo.com) (203.84.221.125) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 24 May 2007 10:07:00 -0700 Received: (qmail 90802 invoked by uid 60001); 24 May 2007 17:06:35 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.co.in; h=X-YMail-OSG:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=sVaUKIvprPxYHfIVkkG5XVFJK6NW14hBfh01CjLL6Qfp4tq1huTrUPZK4GtRlUee77XEWoN7TYEH+8IBKYXVihA8YOm9iDLa1y9vbrL3Xsb3Ucvia6Atd9rNXIDYtx8Wj/BXZshbT2wkb9qG3GcLsBd4VJD2nJ7t/98z1tfgbWM=; X-YMail-OSG: L6jI5SwVM1n2BMNZzV7YH4hp_KGHdxMDpD3wiSY4KTraCExVuOurGNqmeevH1Ad0JcKB1piNmH.V0QeXeRQNOdtNxerPxNXbk4mzjA39hezI_32L9qI- Received: from [72.244.53.172] by web8704.mail.in.yahoo.com via HTTP; Thu, 24 May 2007 18:06:35 BST Date: Thu, 24 May 2007 18:06:35 +0100 (BST) From: Krish Subject: Waiting for task to succeed To: user@ant.apache.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <802464.90552.qm@web8704.mail.in.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi I have a requirement wherein I need to make sure the process doesnt exist. So I need to do something like this - `netstat -tln | grep 8080 | cut -f1 -d'. If the return value of the above is tcp, then i know that a process is running ..... I need to run this command in a loop until the process dies out. Right now, there is no way of knowing how long it takes for the process to die (1 min or 2 min etc)....Also i looked at task, but there is no way of placing this task in a conditional loop. Or if there is way, I am not sure how to proceed. I also looked at but I cannot use and together. Let me know how to proceed with this. Thanks K _____________________________________________________ *Half of being smart is knowing what you're dumb at *To err is human--and to blame it on a computer is even more so *Gravity is not responsible for people falling in love Did you know? You can CHAT without downloading messenger. Click here http://in.messenger.yahoo.com/webmessengerpromo.php --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org