ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Z W" <mpc8...@gmail.com>
Subject Ant and Ping
Date Tue, 08 Jan 2008 04:17:11 GMT
Hi Gurus

Is there a jar file out there that provides ping task to verify if a host
connection is working ?

Another approach I have is to use cgwin with ant


<exec dir="." executable="cygwin.bat" os="Windows XP" timeout="1000"
failonerror="true">

<arg line="_build_ping_alive.sh"/>

</exec>





_build_ping_alive.sh

===============

#!/usr/bin/bash

ping linpacdb1 -t 1 | sed '1,4d' | grep -o 100.0

ping linpacdb1 -t 1 | sed '1,4d' | grep -o 0.0



But I'm still getting no/wrong output.

     [exec] ←]0;~
     [exec] ←[32mlaptop@bohr <32mlaptop@bohr> ←[33m~←[0m
     [exec] $ logout

What am I doing wrong ?

Any help is appreciated.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message