闭幕会后工作脚本 [英] Working script after closing session

查看:148
本文介绍了闭幕会后工作脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Amazon EC2。 我连接通过SSH和运行Python脚本。如果我退出,会不会继续工作?
如何运行Python脚本,关闭SSH会话,他一直在忙什么呢?

I use Amazon EC2. I connect by SSH and run python script. If I exit, will it continues working?
How can I run Python script, close SSH session and he's been working on?

推荐答案

脚本中使用nohup命令之前, (nohup这个蟒蛇example.py).the输出将被存储在nohup.out的在乌拉圭回合执行的文件夹中。

before your script use nohup command (nohup python example.py).the output will be stored in nohup.out in ur execution folder.

这篇关于闭幕会后工作脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆