I use ssh to log into a remote machine
and then I use the
screen command to create a virtual screen.
Now, if I type in
normally I should only exit the screen and return to the remote ssh terminal
but the reality is the
exit command exits the ssh and I return to the local terminal. Why?
Besides, if I run a program/process in the virtual screen, I can't use
C-a d to return to the remote ssh terminal,
it just echoes back
^A^A^A^A^A^A^A^A^A^A^A^A^A^, and doesn't return to the remote ssh terminal.
root@remote_lab:/home/esy# time bash test.sh 2>&1|cat > temp
What could be going wrong?