Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Not A Problem
-
1.6.3
-
None
-
None
-
Linux Enterprise 64 Bit
Eclipse 32 bit with JDK 32 bit
Description
waitForOrKill() not working properly
i have this code:
public class GroovyTest{
static void main(def args){
println"******************** Befehlt:ping www.linux.at mit "(long)5" msec wartezeit*******"
try{
def command5 = "ping www.linux.at "
def proc5 = command5.execute()
proc5.in.eachLine
proc5.waitForOrKill((long)5)
println"Zeit abgelaufen"
}catch(Exception ee)
{ println "Fehler Zeit abgelaufen" println"stderr: " + ee.message }}
it keeps pinging ang pinging but i want it to stop after 5 sec i also trie 5000 or 1 and even0 but it keeps pinging ..
how can i set a counter?
greets