I have a
timeout command that is not timing out.
user@db:~$ ps aux | grep 'timeout' user 4979 0.0 0.0 4440 628 pts/144 S+ 18:52 0:00 sh -c timeout 16 mycommand user 4980 0.0 0.0 11716 680 pts/144 S 18:52 0:00 timeout 16 mycommand
user@db:~$ ps -p 4980 -o etime= 02:29:16
A conundrum for me. This is the exact opposite of what I need to happen, and I am not sure the best place to begin to troubleshoot this problem. I do not know much of the lower level system stuff in *nix systems.
I would like to know
what is the best approach to troubleshooting a hanging command on a *nix system?
Is there a log or other system info from which I can gather valuable information?
Is there another solid approach to running a command with a time out before it is sent a term signal?
plus all other relevant info...
Also I realize this could be a situation with 'mycommand', so I will note the the actual command being used is a
Also note that
timeout works as expected, most of the time.