Hi Bill,
thanks a lot, works just fine. If anyone is interested, here is the ant code:
<telnet server="${agentry-server}" port="2401">
<write>agentry restartapp ${agentry-app-name}</write>
<read>${agentry-app-name} (started)</read>
</telnet>
Cheers, Daniel