Using Shell Script like below:
if [[timeout 60 | wsof -l]]; then echo "thread sleeping for 60 seconds" exit else echo "timeout failed" exit fi
But getting error timeout failed. How to apply timeout for 60 seconds so that return is echo "thread sleeping" in this case? I'm using bash script for this Case