I am using Linux containers with Proxmox 4. When I am connected on an Ubuntu 16.04 container with:
pct enter <id>
I run a script with screen and try to watch the process running with:
screen -x <processname>
I got the error:
Must be connected to a terminal error
When I connect with:
ssh -t <user>@<container_ip>
It works, I can attach the display to the screen.
How can I use screen -x when I am connected with pct enter ?
-x
provides you. Did you tryscreen -t -x ..
? Good luck. – Glisterscreen -x
allow to display a background script launched with the screen command. When I use the commandscreen -t -x
I got the same error : Must be connected to a terminal. – Appetency