Re: Sending Command Pipeline to a detached Screen

aws backup <[email protected]>
Newsgroups gmane.comp.gnu.screen.user
Message-ID <[email protected]>
Hi Colin,

thank you. I tried but nothing arrived in the screen or it did arrive but didn't start.
What is the exact syntax? Can I start the screen and send the commands in one command or do I have to start the screen in one command and in the next command I send the pipeline? I tried it like this:

screen -d -m -S Screen-Name; screen -S Screen-Name -p 0 -X stuff "Command1; Command2  | Command3 && Command4"

How is it with quotations in the command pipe? Can they interfere? For example:  -X stuff "command "$f" | command2 "text""

Thank you.



> On 19 Nov 2016, at 12:07, Colin Richardson <[email protected]> wrote:
> 
> Have u tried -X stuff "command | command2" with the quotes?
> 
> 
> On 19 Nov 2016 7:36 am, "aws backup" <[email protected] <mailto:[email protected]>> wrote:
> Hello,
> 
> I would like to start a screen session in detached mode and send a command pipeline to it. How can I do this?
> With my approach
> 
> screen -d -m -S Name Command1; Command2  | Command3 && Command4
> 
> only Command1 is send to the screen.
> 
> Thank you.
> 
> 
> 
> _______________________________________________
> screen-users mailing list
> screen-users-mXXj517/[email protected] <mailto:screen-users-mXXj517/[email protected]>
> https://lists.gnu.org/mailman/listinfo/screen-users <https://lists.gnu.org/mailman/listinfo/screen-users>
>

_______________________________________________
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.