看板 [ Python ]
討論串[問題] python 執行 shell script
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓0(0推 0噓 6→)留言6則,0人參與, 最新作者gn00618777 (非常念舊)時間11年前 (2015/01/08 13:55), 編輯資訊
0
0
1
內容預覽:
hi 我知道原因了. 要改成. cmd=subprocess.Popen(['./create_tunnel.sh','%s %s'%(tunnel_name,tunnel_name2)]. 就可以嚕. 謝謝. --. 發信站: 批踢踢實業坊(ptt.cc), 來自: 61.220.220.23

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者gn00618777 (非常念舊)時間11年前 (2015/01/08 13:37), 編輯資訊
0
0
1
內容預覽:
板友們好. 我在一個 web script 寫一個執行 shell 指令. cmd=subprocess.Popen(['./create_tunnel.sh','%s'%tunnel_name],stdout=subprocess.PIPE, stderr=subprocess.PIPE). 它是
(還有108個字)
首頁
上一頁
1
下一頁
尾頁