Kod: Zaznacz cały
ssh user@localhost "ProgramA && ProgramB && ProgramC && ???"
Czyli jak rozumiem żeby zakończyć połączenie muszę wysłać ~., ale nie wiem jak to zrobić. Podejrzewam że należy wysłać w jakiś sposób znak nowego wiersza najpierw, ale jak?-e escape_char
Sets the escape character for sessions with a pty (default: '~')\
.
The escape character is only recognized at the beginning of a
line. The escape character followed by a dot ('.') closes the
connection; followed by control-Z suspends the connection; and
followed by itself sends the escape character once. Setting the
character to "none" disables any escapes and makes the session
fully transparent.
Pozdrawiam i z góry dzięki za pomoc