我正在尝试使用子进程模块从python执行一个程序,如下所示:
scommand = "echo 12 | sudo -kS chroot "+out.split("media")[0]+"media "+ out.split("media")[1]
subprocess.Popen([scommand], stdin=p1.stdout, shell=True,stdout=subprocess.PIPE ,preexec_fn=hsafelimits)
但它给了我一个错误:
/bin/sh: error while loading shared libraries: libc.so.6: cannot open shared object file: Error 24
可能是什么原因?