Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用期望脚本中的 spawn 命令开始我的屏幕连接: spawn screen /dev/...
但是我不知道脚本完成后如何杀死屏幕
screen -X quit
将quit命令发送到正在运行的屏幕会话。
quit
screen -ls然后尝试screen -r #process id进入屏幕。终止它可能使用ctrl + d.
screen -ls
screen -r #process id
ctrl + d