命令在通过结构执行时被挂起
当我通过结构在一台远程计算机上运行以下命令时,它被挂起。
def execute_lmo_scripts():
print "preparing to execute lmo scripts................"
output = run("sudo suwww ; ") # or this command sudo("suwww",shell=False)
如果我在远程服务器上手动运行该命令,它可能正在执行。 任何人都可以指导我如何解决这个问题吗?
When i am running the below command on one of the remote machine via fabric it is getting hanged.
def execute_lmo_scripts():
print "preparing to execute lmo scripts................"
output = run("sudo suwww ; ") # or this command sudo("suwww",shell=False)
If i manually run the command on the remote server it is being executed probably.
Can any one please guide me on how to resolve this problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
可能您使用的是
run("sudo ..")
而不是sudo()
并且sudo
命令要求的输入不是没有被收到,所以它永远在等待。Probably that you're using
run("sudo ..")
and notsudo()
and thesudo
command is asking for input that isn't being received, so it's waiting, forever.