Hi, i have searched about this and i get many ways to implement timeout while running commands/script in shell.
what i am doing right now is:
Code:
command1 &
pid=$!
( sleep 60; kill $pid ) &
# other commands with same line as above
command2..
i know many drawback of doing above.
but i have also heard new coreutils timeout command has improved way of achieving this. i have searched but nothing interesting i have got.
i am using centOS 6.2, if anybody know what is this new coreutils timeout. and how to use?