Jump to content

Spying on Terminal from another computer


Recommended Posts

Hi.

 

I would like to know how I can view the output of a terminal, e.g. /dev/pts/0 from another computer, that is logged in (via ssh) to the first and is using terminal /dev/pts/1

 

Can I 'spy' on the other terminal, e.g. to monitor what it's doing (e.g. a big compile)?

 

Thanks,

Chris

Link to comment
Share on other sites

I'm sure there are several ways, but you might want to use a FIFO, see man mkfifo.

 

For example, you can send the whole output to the fifo, and at any time from anywhere you can read what is currently dumping into the fifo file.

 

sorry for not being more explicit, but nowadays I cant spend too much time here, busy days ;)

Link to comment
Share on other sites

This isn't a real answer to this problem, but it works for what I want.

 

Start the big compile with nohup, which means the output should be directed to nohup.out.

 

Then from the other box you can look at the nohup.out file however you choose - I tend to do tail -f nohup.out

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...