program_monitor.log我的意思就是不想产生这个日记文件
时间: 2024-03-11 07:48:16 浏览: 97
如果你不希望在日志目录下产生日志文件,可以将 `log_file` 变量的赋值语句修改为:
```
log_file="/dev/null"
```
这样,每次执行脚本时都会将日志信息输出到 `/dev/null`,而不会在文件系统中创建日志文件。请注意,这样做的话你将无法查看脚本的日志信息,因此需要在调试或者运行脚本时自行添加相应的日志输出语句。
阅读全文
相关推荐
![-](https://img-home.csdnimg.cn/images/20241231044955.png)
![-](https://img-home.csdnimg.cn/images/20241231044833.png)
![-](https://img-home.csdnimg.cn/images/20241231045053.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)