nohup的使用

完整的指令是这样的:

nohup python3 TbbWeRobot.py 2>nWechat.log 1>eWechat.log &


nohup:

保证程序不间断运行


&:

是在后台运行


python3 TbbWeRobot.py:

我的指令


2>nWechat.log

表示正常的输出保存到nWechat.log


1>eWechat.log

表示异常的输出保存在eWechat.log

猜你喜欢

转载自blog.csdn.net/wangpeng2011314/article/details/79160621
今日推荐