使用Linux重定向解决nohup.out无写权限问题

2019-10-06  本文已影响0人  李守俊

场景:
在服务器上nohup执行python命令时,报错nohup: failed to run command `python XXX': Permission denied
解决:
执行命令时,将结果重定向到null设备
nohup 你的shell >/dev/null 2>&1 &

上一篇 下一篇

猜你喜欢

热点阅读