Re: Sending Command Pipeline to a detached Screen

aws backup <[email protected]>
Newsgroups gmane.comp.gnu.screen.user
Message-ID <[email protected]>
Thank you.
With me ^M works only in Terminal but not in a script.
I need it as a script.


> On 24 Nov 2016, at 02:57, Michael Parson <[email protected]> wrote:
> 
> 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
> 
> 
> _______________________________________________
> screen-users mailing list
> screen-users-mXXj517/[email protected]
> https://lists.gnu.org/mailman/listinfo/screen-users
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.