Is there a way to check in ant if an internet connection is available.
            Asked
            
        
        
            Active
            
        
            Viewed 480 times
        
    1 Answers
1
            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.
 
    
    
        Community
        
- 1
- 1
 
    
    
        Leniel Maccaferri
        
- 100,159
- 46
- 371
- 480
- 
                    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 – user373201 Sep 05 '10 at 03:54
- 
                    @muthiahmerchant That answer is here http://stackoverflow.com/questions/929368/how-to-test-a-internet-connection-in-bash – ocodo Sep 05 '10 at 04:48
