cron 作业未在特定帐户下运行

cron 作业未在特定帐户下运行

我的 RHEL 5.4 系统上的“oracle”帐户下有一个 crontab 条目,但它似乎从未真正运行过。我有以下条目:

* * * * * /home/oracle/blahblah.sh > /tmp/test.log 2>&1

由于“blahblah.sh”实际上并不存在,我预计会在 /tmp/test/log 中看到错误。如果我在个人帐户中创建类似的 crontab 条目,该条目会运行,并且我会在 test.log 中得到以下输出:

/bin/sh: /home/username/blahblah.sh: No such file or directory

看起来 cron 作业根本不仅在一个特定帐户 (oracle) 下运行。为什么会发生这种情况?请注意,我们正在使用 Active Directory,但我不认为这与此问题有任何关系,因为我测试的两个帐户都通过 AD 进行身份验证。

相关内容