📜  ubuntu 将输入发送到屏幕 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:40.997000             🧑  作者: Mango

代码示例1
# start a new screen test running the command bash
screen -dm -S test bash

# send "echo it worked\n" to the screen
screen -S test -p 0 -X stuff "echo it worked^M"

# display the screen, it should have runned the command "echo it worked"
screen -r test