比如下面的 crontab 配置
30 13 * * Mon,Tue,Wed,Thu,Fri ./test.sh >> /var/log/devops.log
如果 test.sh 脚本的命令运行出错,不会记录到 devops.log 日志中,请问如何可以记录到日志?
相关问题
- Is shmid returned by shmget() unique across proces
- how to get running process information in java?
- Error building gcc 4.8.3 from source: libstdc++.so
- Why should we check WIFEXITED after wait in order
- Null-terminated string, opening file for reading
加上
2>&1
解决了脚本里面自己控制