views:

33

answers:

1

Is there a way to check in ant if an internet connection is available.

+1  A: 

You could use http://ant.apache.org/manual/Tasks/exec.html to get this information using an external command.

Check internet connection in bash (you could write a small app for this) or try to ping some site and write the result somewhere.

Handle Exec task output in Ant

Leniel Macaferi
Thanks, Can you tell me a command in linux that could do this. and how to get the output of the command and set it to a property
@muthiahmerchant That answer is here http://stackoverflow.com/questions/929368/how-to-test-a-internet-connection-in-bash
slomojo