ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Brown" <da...@davidwbrown.name>
Subject Re: Ant and Ping
Date Tue, 08 Jan 2008 11:23:21 GMT
Maybe try beanshell or JMeter with JMeter Ant task with beanshell. And, you won't need cygwin.

Z W wrote ..
> 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.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message