shell连续命令的结果单行输出到文件

命令:

(date +"%Y%m%d%H%M%S" | tr -t "[\n]" "[ ]";cd /opt/py_mon-wechat-message && /usr/bin/python3 main.py) >> /opt/py_mon-wechat-message/main.log

You may also like...