Aix操作系统crontab报0481-079 Reached a symbol that is not expected
Aix操作系统crontab报0481-079 Reached a symbol that is not expected
背景
在IBM小型机(操作系统为Aix)上使用crontab定时任务时,编写内容为以下:
*/10 * * * * sh /home/monitor/check/log/test.sh & //每十分钟执行此脚本
报以下错误内容:
A line of the crontab file:
"/tmp/crontab8RemMa" 1 line, 63 characters /log/test.sh &
contains the following error:
0481-079 Reached a symbol that is not expected.
问题处理
此错误为crontab里有不符合的符号,Aix操作系统上不支持/符号,只能使用枚举的方式修改为cronta -l以下:
0,10,20,30,40,50 * * * * /home/monitor/check/log/test.sh &