Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我通过结构在其中一台远程机器上运行以下命令时,它会被挂起。
def execute_lmo_scripts(): print "preparing to execute lmo scripts................" output = run("sudo suwww ; ") # or this command sudo("suwww",shell=False)
如果我在远程服务器上手动运行命令,它可能正在执行。谁能指导我如何解决这个问题?
可能您正在使用run("sudo ..")而不是sudo(),并且该sudo命令要求输入未收到的输入,因此它一直在等待。
run("sudo ..")
sudo()
sudo