How do I set a timeout for twiddle commands ?

Solution Verified - Updated -

Issue

I use twiddle inside a script of mine that checks the status of both the ajp connector and the deployments. If the node I am testing is blocked, twiddle hangs. In case like this, my script gets stuck.
In order to avoid this, I need to know how I can set a timeout in twiddle so if the node I try to connect to does not respond rapidly, twiddle exits instead of hanging for a response from JBoss.

Environment

JBoss Enterprise Application Platform (EAP)
- 5.x
- 4.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content