crontab 英文乱码
时间: 2023-09-02 22:05:59 浏览: 103
Crontab执行命令时出现乱码的问题可以通过设置环境变量解决。在shell脚本开始的时候加入以下命令:export LANG="en_US.UTF-8"#!/bin/sh。这样可以确保在执行定时任务时获取到系统的正确环境变量,避免中文乱码的问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [linux服务器上面的crontab执行定时任务没运行或者出现中文乱码等问题总结](https://blog.csdn.net/shyrainxy/article/details/108247436)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [RHEL6基础之十九crontab计划任务管理](https://blog.csdn.net/weixin_42513928/article/details/113277384)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文