Screen version 4.01.00devel (GNU) 2-May-06, under Linux Mint 17.3
Screen version 4.04.00 (GNU) 19-Jun-16, under ArchLinux
LANG=en_US.UTF-8
SYSSCREENRC=''
hardstatus string "%{= KW}%n %h%{w}%<%= %-w%{ck}%n %t%?(%u)%?%{-}%+w
%{c}%H %d %D %c'%s"
Multibyte characters appear correctly in windows; b
*screen -d -m -S Screen-Name*
*screen -S Screen-Name -p 0 -X stuff "Command1; Command2 | Command3
&& Command4"$(echo -ne '\015')*
This first creates a screen session running a shell, most likely bash.
Second, it sends some commands to the terminal input using stuff. In this
case, you could append
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