Re: Ant and Ping

2008-01-09 Thread Steve Loughran
Z W wrote: Hi Gurus Is there a jar file out there that provides ping task to verify if a host connection is working ? There's no way to do ping in the Java APIs (see java.sun.com bugreps 'ICMP for Java'), so no pure ping command. the condition does something ping-like on a java 1.5+ runti

MS Powershell and Ant and Ping

2008-01-08 Thread Z W
Hi Gurus I have a powershell script MyPing.ps1 that pings different hosts. If any host is down, I would have a return code 2 to indicate ping failure to all hosts even though the script works fine and completes execution. However, I use ANT to execute this script using My understanding is t

Re: Ant and Ping

2008-01-08 Thread Z W
Hi Any other recommendations ? Thanks

Re: Ant and Ping

2008-01-08 Thread David Brown
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 > > > failonerro

Ant and Ping Question

2008-01-07 Thread Z W
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"/> _buil

Ant and Ping

2008-01-07 Thread Z W
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 _build_ping_alive.sh === #!/usr/bin/bash ping linpacdb1 -t 1 | sed '1,4d' | grep -o 100.0 ping linpacdb1 -t 1 | s