1) I want to open a terminal for input/output of different processes that are already running. When I open a new terminal, bash is automatically executed and I can't get the terminal stdin, as it is already taken by bash. I want to run a terminal window, with no executables linked to it.
2) If I'm connecting through SSH, how could I get the same behavior for a new connection? i.e. having a remote terminal with no bash running?
Running Ubuntu.
-t -t
in the ssh command, as otherwise the tty is not created by default (at least in my system). Thank you! – AndresR Dec 06 '16 at 03:23ssh host.example.com sleep 999999999
should bessh -t -t host.example.com sleep 999999999
otherwise the terminal is not created (at least in my system). I will accept the answer if you add that (or explain how it should work with the original command). – AndresR Dec 06 '16 at 05:43pause
that does exactly that, a call tosigpause
/sigsuspend
. (-: – JdeBP Dec 06 '16 at 06:43