Re: Passing string into stdin of screen

wcjh <[email protected]>
Newsgroups gmane.comp.gnu.screen.user
Message-ID <[email protected]>
Michael,
Thank you for your response.
I successfully tried your suggestion.
FYI, I was also able to enter a string into stdin in the following
more-convoluted manner:
    STRING > FILENAME
    screen -X bufferfile FILENAME
    screen -X readbuf
    screen -X paste .

Thank you again.
Cheers,
William



To pass a command to a screen session to be intrepreted from stdin use the
following:

screen -X stuff "echo hello^M"

However make sure to generate the ^M by pressing Ctrl-V Enter.


-- 
View this message in context: http://old.nabble.com/Passing-string-into-stdin-of-screen-tp30516794p30541435.html
Sent from the Gnu - Screen mailing list archive at Nabble.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.