ver saber puertos puerto para ocupados hat habilitar esta comando abrir abiertos abierto sockets ant port flexunit flexunit4

sockets - saber - ver puertos abiertos linux ubuntu



Comprueba si el puerto está abierto en ANT (1)

¿Es posible verificar si un puerto está abierto usando tareas ANT?

Necesito ejecutar la tarea de flexunit, pero antes de comenzar esta tarea, necesito verificar si otra tarea de flexunit no se está ejecutando y bloquear el puerto deseado.

Gracias por cualquier sugerencia,

Rafal


Use la condición del zócalo ant.

<target name="check-port" description="Check whether Tomcat is running"> <echo message="Checking whether Tomcat is running"/> <condition property="tomcat.running"> <socket server="${tomcat.host}" port="${tomcat.port}"/> </condition> </target>

http://ant.apache.org/manual/Tasks/conditions.html