Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am running a cron job which often hangs and does not respond. The same problem was mentioned at stackoverflow

I need timeout command for centos as suggested in this answer. Link for ubuntu timeout command.

share|improve this question
Have a look at this link: – Khaled Jan 6 '12 at 14:38
up vote 1 down vote accepted

It's in RHEL. On my RHEL 5 System (abbreviated output):

# yum whatprovides */timeout
Loaded plugins: rhnplugin, security
bash-3.2-32.el5.x86_64 : The GNU Bourne Again shell (bash) version 3.2
Repo        : rhel-x86_64-server-5
Matched from:
Filename    : /usr/share/doc/bash-3.2/scripts/timeout

Check the above path to see if it's there. If it is then copy the scirpt to somewhere in your path (easiest) or add the scripts directory to your path if that's appropriate for your environment (better).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.