简体   繁体   中英

Linux error - setterm: $TERM is not defined. /etc/cron.hourly/mcelog.cron:

I'm in RHEL 5.9 and using mcelog-0.9pre-1.32.el5, and I get this error hourly on my mail from the /etc/cron.hourly/mcelog.cron,

Could someone help to solve this, when I type echo $TERM, it returns xterm.

thanks,

I expect a very simple solution: Your cron job has no terminal. So how should it use setterm for it? From your mail you should receive also the job/process/script name which runs into trouble. Have a look which one it is and fix it, if really needed.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM