0
# -*- coding: utf-8 -*-
import rpyc
conn = rpyc.classic.connect(r"xx.xx.xx.xx")
s = conn.modules.subprocess.check_output(['file',u'`which dd`'])
print s
輸出是:錯誤運行外殼命令與subprocess.check_call()
`which dd`: cannot open ``which dd`' (No such file or directory)
Process finished with exit code 0
當我手動執行所述命令提示它給我適當的輸出:
/bin/dd: symbolic link to /bin/dd.coreutils
是否有任何Unicode代碼錯誤