Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

ubuntu send input to screen

# start a new screen test running the command bash
screen -dm -S test bash

# send "echo it worked
" 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
 
PREVIOUS NEXT
Tagged: #ubuntu #send #input #screen
ADD COMMENT
Topic
Name
9+5 =