2

This question already has an answer here:

I logged in to my linux physically(say tty1) and started a process that watches stdin for commands and has some stdout-put. How can I access/use this process from a SSH session?

marked as duplicate by Stéphane Chazelas linux May 21 at 6:17

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

0

You can send output directly into another terminal using the device files under /dev. For example:

cat "my command" > /dev/tty1

to send output to tty1 or

cat "my command" > /dev/pts/0

to send output to the first pseudo-terminal. Use the ps command to see what terminal a process is running on.

Not the answer you're looking for? Browse other questions tagged or ask your own question.