nohup

作者: 土豆特别想爬山 | 来源:发表于2021-01-20 15:14 被阅读0次
nohup python test.py > test.log 2>&1 &

2>&1 解释:
将标准错误 2 重定向到标准输出 &1 ,标准输出 &1 再被重定向输入到 test.log 文件中。
0 – stdin (standard input,标准输入)
1 – stdout (standard output,标准输出)
2 – stderr (standard error,标准错误输出)

相关文章

网友评论

      本文标题:nohup

      本文链接:https://www.haomeiwen.com/subject/ivykzktx.html