看板 [ Python ]
討論串[問題] 如何在shell裡面下指令
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓1(1推 0噓 0→)留言1則,0人參與, 最新作者zxvc (眾生都是未來佛)時間9年前 (2016/07/25 09:07), 9年前編輯資訊
0
0
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個字)

推噓3(3推 0噓 13→)留言16則,0人參與, 最新作者proX (不知名水鳥)時間9年前 (2016/07/24 01:33), 9年前編輯資訊
0
0
0
內容預覽:
嗨大家好. 想請問如何要在一個新的shell裡面下指令,不會等到該shell關閉以後才能繼續那個指令. 舉個例子,在Unix shell上面,假設用特定的指令會開新的shell (暫且稱之為newsh),. 進去這個newsh shell以後,想要用exit再出去,也就是回去原本的unix shel
(還有821個字)
首頁
上一頁
1
下一頁
尾頁