Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there any way to set up a local process, but have the output also go to a terminal that has SSH'd into my machine?

share|improve this question
up vote 1 down vote accepted

Is this helpful to you?

  Pipes over SSH

In this case the pipe is used to copy files, but perhaps this can help you to figure out what you need?

Also, the "tee" command will be of interest to you for sending output to multiple places.

share|improve this answer
that isn't quite what I was looking for, but it is interesting. the tee command is something I'm not too familiar with. Right now, I'm trying to connect two displays to the same screen session but I can't quite figure it out. a screen solution would be best because then I can literally pick up my session on any one of my terminals whenever I choose. Currently, I am using screen -dRR as part of my login script to try and take the session(s) I was using hostage from my old machines, but I would ideally like to be able to use any terminal simultaneously. – mechko May 23 '11 at 20:57
Oh, for GNU Screen ("screen") just use the -x switch to connect to a session that's in use by someone else (and without disconnecting them). You'll have to explore the other switches like -d and -R in combination with this. You should also consider the features that allow you to name your screen sessions so that you can, for example, name a session after the user's login name. – Randolf Richardson May 23 '11 at 23:30
Regarding tee, it duplicates STDIN to STDOUT while also writing a copy to somewhere else (e.g., a file). – Randolf Richardson May 23 '11 at 23:31
Win for screen -x – mechko May 24 '11 at 5:54
@RandolfRichardson It works beautifully and wonderfully and I thank you dearly for informing me of this. :D – mechko May 24 '11 at 16:44

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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