Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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: centos.org/modules/newbb/viewtopic.php?topic_id=31406 –  Khaled Jan 6 '12 at 14:38

1 Answer 1

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

 
discard

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.