Re: Sending Command Pipeline to a detached Screen

Michael Parson <[email protected]>
Newsgroups gmane.comp.gnu.screen.user
Organization BL dot ORG
Message-ID <[email protected]>
On 2016-11-22 22:31, Neal Fultz wrote:
> SCREEN -D -M -S SCREEN-NAME
> 
> SCREEN -S SCREEN-NAME -P 0 -X STUFF "COMMAND1; COMMAND2  | COMMAND3 &&
> COMMAND4"$(ECHO -NE &#39;\015&#39;)

You can end your command with "^M" instead of the echo bits to generate 
the <CR>:

screen -S screen-name -X stuff "echo hello world^M"

-- 
Michael Parson
Austin, TX
KF5LGQ
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.