cmt29 Posted April 28, 2004 Report Share Posted April 28, 2004 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 Quote Link to comment Share on other sites More sharing options...
aru Posted April 28, 2004 Report Share Posted April 28, 2004 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 ;) Quote Link to comment Share on other sites More sharing options...
Qchem Posted April 28, 2004 Report Share Posted April 28, 2004 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 Quote Link to comment Share on other sites More sharing options...
cmt29 Posted April 28, 2004 Author Report Share Posted April 28, 2004 Is there not some simple command using a pipe and /dev/stdout and /dev/pts/0 etc.? Chris Quote Link to comment Share on other sites More sharing options...
jlc Posted May 4, 2004 Report Share Posted May 4, 2004 If those don't fit your needs, just ssh to it and start the job from your box, then you have no choice but to watch it. ;) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.