Cron日志未填充CMD

时间:2019-12-30 16:04:28

标签: linux bash logging cron

我使用的是OEL 7.0,我的cron中安排了数百个脚本。当我尝试从/ var / log / cron检查cron日志时。下面是针对my_user的脚本(在cron中计划了脚本)。

Dec 30 11:41:06 ********025 crontab[2297]: (my_user) LIST (my_user)
Dec 30 14:32:14 ********025 crontab[26850]: (my_user) LIST (my_user)
Dec 30 14:33:04 ********025 crontab[27857]: (my_user) LIST (my_user)

But what I am expecting here is something like the below which I used to see in my old environment in OEL 5.0.

Dec 29 04:10:02 ********dat01 crond[11686]: (my_user) CMD (/prd/gbl-share/software/app-share/scripts/bin/<SOME_SCRIPT>.ksh 2> /dev/null)
Dec 29 04:10:02 ********dat01 crond[11687]: (my_user) CMD (/prd/gbl-share/software/app-share/scripts/bin/<SOME_SCRIPT>.ksh 2> /dev/null)
Dec 29 04:10:02 ********dat01 crond[11689]: (my_user) CMD (/prd/gbl-share/software/app-share/scripts/bin/<SOME_SCRIPT>.ksh live_env 2> /dev/null)

In the place of CMD which I used to see in my old environment, I am seeing LIST in the new OEL 7.0 environment. Is there any way we can get this corrected? Can anyone please help me here?

Thanks & Regards,

0 个答案:

没有答案