看板
[ Python ]
討論串[問題] 如何在shell裡面下指令
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁
內容預覽:
參考:. cmd = subprocess.Popen('bash', stdin=subprocess.PIPE, stdout=subprocess.PIPE)cmd.stdin.write(b'echo $SHELL\n'). cmd.stdin.flush(). cmd.stdin.writ
(還有510個字)
內容預覽:
嗨大家好. 想請問如何要在一個新的shell裡面下指令,不會等到該shell關閉以後才能繼續那個指令. 舉個例子,在Unix shell上面,假設用特定的指令會開新的shell (暫且稱之為newsh),. 進去這個newsh shell以後,想要用exit再出去,也就是回去原本的unix shel
(還有821個字)
首頁
上一頁
1
下一頁
尾頁