screen command

請教下,我用 screen command 去連接 BT Console,用完後,想 disconnect。我打: screen -d 23671 或者 screen -D 23671 或者 screen -XS 23671 -quit

打完這些 command,是見到 23671 detached,但係個 BT Console 還是 connect 住。搞到我 reconnect 時有問題。

請問 screen cmd 點可以 disconnect /dev/xxxxconsole???

what is bt console ??

TOP

提示: 作者被禁止或刪除 內容自動屏蔽

TOP

Ctrl a d
to disconnect screen
screen -r
to resume

TOP

what is bt console ??
chancho 發表於 2022-12-3 09:59 AM



    bluetooth console

https://www.kshuang.xyz/doku.php ... iterm2_console_port

TOP

Ctrl a d
to disconnect screen
screen -r
to resume
javacomhk 發表於 2022-12-3 12:28 PM



    咁我點指定 close 那個 session?

TOP

Kill screen session:
screen -S 23671 -X quit

For dead sessions use:
screen -wipe

TOP

本帖最後由 YBM 於 2022-12-4 00:04 編輯

i use below:
start: screen -dmS myapp XXX
end: screen -r myapp -p 0 -X stuff "^C"
可能有其他好的

TOP

screen -S 23671 -X quit
這個可以呀。令到 BT Console reconnect

screen -wipe <--- 這個是沒有指定 session 的?

TOP

另外想請教下,我用了 screen command connect 左 console 後,show run > 點 capture 返 result 去 .txt?

TOP