Thank you :-) Great! It works perfectly.
> On 30 Nov 2016, at 09:15, Andrew King wrote:
>
> Try:
>
> screen -dmS Screen-Name /bin/bash -c "Command1 | tee logfile | tee >(mail -s
> 'subject' not...@gmail.com <mailto:not...@gmail.com>"
> screen -dRS Screen-Name /bin/bash -c "echo 1; echo a | sed s/a/A/; echo 2 >
> /tmp/hooha.txt"
>
> This will automatically close when finished, and avoids stuff entirely.
>
>
>
> On Tue, Nov 22, 2016 at 2:37 PM, aws backup <mailto:albatin.salta...@g
; /tmp/hooha.txt"
>
> This will automatically close when finished, and avoids stuff entirely.
>
>
>
> On Tue, Nov 22, 2016 at 2:37 PM, aws backup <mailto:albatin.salta...@gmail.com>> wrote:
> Ok I figured out the correct syntax.
>
> screen -d -m -S Scree
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 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 &&
>> COMMA
rry pi,
> but I think you can send a ^M at the end and it acts like the user pressing
> ENTER. I don't remember the exact char off the top of my head and I am out
> and about shipping at the moment, but shoulder be able to google the command
> IDF is not M.
>
>
>
at the end and it acts like the user pressing
> ENTER. I don't remember the exact char off the top of my head and I am out
> and about shipping at the moment, but shoulder be able to google the command
> IDF is not M.
>
>
> On 19 Nov 2016 11:54 am, "aws backup" <
uot;
Thank you.
> On 19 Nov 2016, at 12:07, Colin Richardson wrote:
>
> Have u tried -X stuff "command | command2" with the quotes?
>
>
> On 19 Nov 2016 7:36 am, "aws backup" <mailto:albatin.salta...@gmail.com>> wrote:
> Hello,
>
> I would li
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.
__