|Subject:||Re: Sending Command Pipeline to a detached Screen|
|Date:||Wed, 23 Nov 2016 00:37:18 +0200|
|Ok I figured out the correct syntax.|
screen -d -m -S Screen-Name; screen -S Screen-Name -p 0 -X stuff "Command1; Command2 | Command3 && Command4"$(echo -ne '\015')
$(echo -ne '\015') starts the command pipe in the screen session. But now the screen is not terminating anymore after the command pipe has finished as it did before when it only received one command. Therefore the script runs into an error when it runs the next time because it makes a new screen session with the same name and then it does not know to which screen session to send the command.
Why is it not terminating the session anymore? Is there a command which I can send there?
Any other suggestion how to solve this problem?
|[Prev in Thread]||Current Thread||[Next in Thread]|