[ltp] OT: how to time a ping command?

André Wyrwa linux-thinkpad@linux-thinkpad.org
Mon, 20 Sep 2004 01:39:58 +0200


Hi,

can anyone tell me how i can time a ping command? I can do a -c 1 -i 0
to time one resulting positive, but if the server is not found the
command never returns, so it seems i need to find a way to terminate it
from outside after some time. But how (killall is to be avoided)?

(I need this for some boot script hacking.)

André.