超时套餐为centos

我正在运行一个经常挂起而不响应的cron作业。 在stackoverflow中提到了同样的问题

我需要这个答案中build议的centos超时命令。 链接为Ubuntu的超时命令 。

这是在RHEL。 在我的RHEL 5系统(缩写输出)上:

# 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 

检查上面的path,看看它是否在那里。 如果是,则将scirpt复制到path中的某个位置(最简单),或者将脚本目录添加到path(如果适合您的环境)。