Re: attaching a terminal to 'join' another?
The next-best is to use the /usr/sbin/watch command to attach to an existing tty and see its screen output. You'll need to rebuild your kenel and add the snp device (or load it as a module). not necessariliy build new kernel sudo kldload snp will do also ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: attaching a terminal to 'join' another?
Jeremy Gransden wrote: On 8/2/07, Jim Stapleton [EMAIL PROTECTED] wrote: Sorry if my question is a bit confusing - I'm not even sure the proper terminology, so I don't know what the best way to start looking is. I'm rebuilding a system at home, and I'd like to check how the build is going at a slow time at work sometimes. I can connect to the system from work (ssh into my main box, and then from there, ssh to the system I'm working on). I have a terminal opened on that system (actually, another ssh session fron the main box), and I'd like to have my new connection attach to that terminal session, if possible, so that I can just pick up where I left off, and monitor it from here. Is this possible? Maybe your looking for screen. try man screen Also sounds like you could do this with watch man 8 watch for more details. thanks, jeremy ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: attaching a terminal to 'join' another?
На Friday 03 August 2007 00:02:51 Tim Judd написа: Forgot to CC the questions ML. --- Tim Judd [EMAIL PROTECTED] wrote: From Tim Judd Thu Aug 2 15:01:18 2007 Received: from [68.35.175.118] by web62407.mail.re1.yahoo.com via HTTP; Thu, 02 Aug 2007 15:01:18 PDT Date: Thu, 2 Aug 2007 15:01:18 -0700 (PDT) From: Tim Judd [EMAIL PROTECTED] Subject: Re: attaching a terminal to 'join' another? To: [EMAIL PROTECTED] MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Content-Length: 2291 I'm on the digest list, so I copy/paste the message to quote: -QUOTE: Message: 16 Date: Thu, 2 Aug 2007 11:19:21 -0400 From: Jim Stapleton [EMAIL PROTECTED] Subject: attaching a terminal to 'join' another? To: freebsd-questions@freebsd.org Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=ISO-8859-1 Sorry if my question is a bit confusing - I'm not even sure the proper terminology, so I don't know what the best way to start looking is. I'm rebuilding a system at home, and I'd like to check how the build is going at a slow time at work sometimes. I can connect to the system from work (ssh into my main box, and then from there, ssh to the system I'm working on). I have a terminal opened on that system (actually, another ssh session fron the main box), and I'd like to have my new connection attach to that terminal session, if possible, so that I can just pick up where I left off, and monitor it from here. Is this possible? Sessions main desktop terminal A [ssh]-- workstation terminal A (where builds are currently being processed) work desktop terminal [ssh]-- main destop terminal B [ssh]-- workstation terminal B I would like to have workstation terminal B intercept workstation terminal A, or main desktop terminal B intercept main desktop terminal A. Can it be done? Where do I start looking, what are the words and phrases of interest? I tried looking at both the bash and xterm commands/man page, but they are rather long, and I'd miss what I was looking for without having a clue in advance. I'm guessing something like /dev/?tty?? might work, but how do I figure out which tty to use? Thank you, -Jim Stapleton --/QUOTE Can't the OP, Jim, use watch(8) with the -W option to interact w/ the terminal? Nothing wrong with screen, but a built-in utility exists. It`s possible, but he`d better use screen for updating/upgrading, since his ssh session that initiated the process may die and then the process dies. With screen the process will continue if his ssh session dies and he would be able to later reattach to the terminal in question. -- PGP KeyID: 0x3118168B Keyserver: pgp.mit.edu Key fingerprint BB50 2983 0714 36DC D02E 158A E03D 56DA 3118 168B signature.asc Description: This is a digitally signed message part.
Re: attaching a terminal to 'join' another?
--- Momchil Ivanov [EMAIL PROTECTED] wrote: Ðа Friday 03 August 2007 00:02:51 Tim Judd напиÑа: Forgot to CC the questions ML. --- Tim Judd [EMAIL PROTECTED] wrote: From Tim Judd Thu Aug 2 15:01:18 2007 Received: from [68.35.175.118] by web62407.mail.re1.yahoo.com via HTTP; Thu, 02 Aug 2007 15:01:18 PDT Date: Thu, 2 Aug 2007 15:01:18 -0700 (PDT) From: Tim Judd [EMAIL PROTECTED] Subject: Re: attaching a terminal to 'join' another? To: [EMAIL PROTECTED] MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Content-Length: 2291 I'm on the digest list, so I copy/paste the message to quote: -QUOTE: Message: 16 Date: Thu, 2 Aug 2007 11:19:21 -0400 From: Jim Stapleton [EMAIL PROTECTED] Subject: attaching a terminal to 'join' another? To: freebsd-questions@freebsd.org Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=ISO-8859-1 Sorry if my question is a bit confusing - I'm not even sure the proper terminology, so I don't know what the best way to start looking is. I'm rebuilding a system at home, and I'd like to check how the build is going at a slow time at work sometimes. I can connect to the system from work (ssh into my main box, and then from there, ssh to the system I'm working on). I have a terminal opened on that system (actually, another ssh session fron the main box), and I'd like to have my new connection attach to that terminal session, if possible, so that I can just pick up where I left off, and monitor it from here. Is this possible? Sessions main desktop terminal A [ssh]-- workstation terminal A (where builds are currently being processed) work desktop terminal [ssh]-- main destop terminal B [ssh]-- workstation terminal B I would like to have workstation terminal B intercept workstation terminal A, or main desktop terminal B intercept main desktop terminal A. Can it be done? Where do I start looking, what are the words and phrases of interest? I tried looking at both the bash and xterm commands/man page, but they are rather long, and I'd miss what I was looking for without having a clue in advance. I'm guessing something like /dev/?tty?? might work, but how do I figure out which tty to use? Thank you, -Jim Stapleton --/QUOTE Can't the OP, Jim, use watch(8) with the -W option to interact w/ the terminal? Nothing wrong with screen, but a built-in utility exists. It`s possible, but he`d better use screen for updating/upgrading, since his ssh session that initiated the process may die and then the process dies. With screen the process will continue if his ssh session dies and he would be able to later reattach to the terminal in question. Yes, very true. I think that's a good point and shouldn't be overlooked. If opportunity doesn't knock, build a door. I can is a way of life. More and Bigger is not always Better. The road to success is always uphill. Be a better Heartthrob. Get better relationship answers from someone who knows. Yahoo! Answers - Check it out. http://answers.yahoo.com/dir/?link=listsid=396545433 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
attaching a terminal to 'join' another?
Sorry if my question is a bit confusing - I'm not even sure the proper terminology, so I don't know what the best way to start looking is. I'm rebuilding a system at home, and I'd like to check how the build is going at a slow time at work sometimes. I can connect to the system from work (ssh into my main box, and then from there, ssh to the system I'm working on). I have a terminal opened on that system (actually, another ssh session fron the main box), and I'd like to have my new connection attach to that terminal session, if possible, so that I can just pick up where I left off, and monitor it from here. Is this possible? Sessions main desktop terminal A [ssh]-- workstation terminal A (where builds are currently being processed) work desktop terminal [ssh]-- main destop terminal B [ssh]-- workstation terminal B I would like to have workstation terminal B intercept workstation terminal A, or main desktop terminal B intercept main desktop terminal A. Can it be done? Where do I start looking, what are the words and phrases of interest? I tried looking at both the bash and xterm commands/man page, but they are rather long, and I'd miss what I was looking for without having a clue in advance. I'm guessing something like /dev/?tty?? might work, but how do I figure out which tty to use? Thank you, -Jim Stapleton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: attaching a terminal to 'join' another?
On 8/2/07, Jeremy Gransden [EMAIL PROTECTED] wrote: On 8/2/07, Jim Stapleton [EMAIL PROTECTED] wrote: Sorry if my question is a bit confusing - I'm not even sure the proper terminology, so I don't know what the best way to start looking is. I'm rebuilding a system at home, and I'd like to check how the build is going at a slow time at work sometimes. I can connect to the system from work (ssh into my main box, and then from there, ssh to the system I'm working on). I have a terminal opened on that system (actually, another ssh session fron the main box), and I'd like to have my new connection attach to that terminal session, if possible, so that I can just pick up where I left off, and monitor it from here. Is this possible? Maybe your looking for screen. try man screen for more details. thanks, jeremy I was actually thinking console for that part of the terminology, but yeah, that's what I want to attach to, the man page didn't tell me how though. This seemed relevant: Output to a virtual console that not currently is on the display is saved in a buffer that holds a screenfull (normally 25) lines. Any output written to /dev/console (the original console device) is echoed to /dev/ttyv0. However, cat'ing and less'ing the device did nothing, except act as if it were waiting for input, and none was coming. I however did find out which screen I'm on using ps -A and grep: [EMAIL PROTECTED] 12:01:15 (0) /ports/java/diablo-jdk15 ps -A | grep tty sjss 0.0 0 0:00.33 0.6 0 00 26343 26339 sshd: [EMAIL PROTECTED] (sshd) sjss 0.0 0 0:09.61 0.5 0 00 43906 43903 sshd: [EMAIL PROTECTED] (sshd) So, I want to see what is going on with ttyp0 ttyp0 Thanks, -Jim Stapleton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: attaching a terminal to 'join' another?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jim Stapleton wrote: I would like to have workstation terminal B intercept workstation terminal A, or main desktop terminal B intercept main desktop terminal A. Can it be done? Where do I start looking, what are the words and phrases of interest? I tried looking at both the bash and xterm commands/man page, but they are rather long, and I'd miss what I was looking for without having a clue in advance. The program you need is screen(1). http://www.gnu.org/software/screen/ It's in ports: sysutils/screen Cheers, Matthew - -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.4 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGsgEY8Mjk52CukIwRCPC3AJ4j8dD8AH2KfD+KYwY0amdU8InERwCdFjqF svhyQaStQO+hZS8VIiGVTQM= =C30W -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: attaching a terminal to 'join' another?
On Thu, Aug 02, 2007 at 11:19:21AM -0400, Jim Stapleton wrote: Sorry if my question is a bit confusing - I'm not even sure the proper terminology, so I don't know what the best way to start looking is. I'm rebuilding a system at home, and I'd like to check how the build is going at a slow time at work sometimes. I can connect to the system from work (ssh into my main box, and then from there, ssh to the system I'm working on). I have a terminal opened on that system (actually, another ssh session fron the main box), and I'd like to have my new connection attach to that terminal session, if possible, so that I can just pick up where I left off, and monitor it from here. Is this possible? Step 1: Go back in time to before you started the build. Step 2: Install a utility called screen on that machine. Step 3: Start a screen session, and start your build from within that. Step 4: Detach from that screen session by typing ^A then pressing D. Step 5: Reattach to that screen session at any time with `screen -r`. Sorry about the go back in time part. I guess you'll know for next time. -- CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ] W. Somerset Maugham: The ability to quote is a serviceable substitute for wit. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: attaching a terminal to 'join' another?
In the last episode (Aug 02), Jim Stapleton said: Sorry if my question is a bit confusing - I'm not even sure the proper terminology, so I don't know what the best way to start looking is. I'm rebuilding a system at home, and I'd like to check how the build is going at a slow time at work sometimes. I can connect to the system from work (ssh into my main box, and then from there, ssh to the system I'm working on). I have a terminal opened on that system (actually, another ssh session fron the main box), and I'd like to have my new connection attach to that terminal session, if possible, so that I can just pick up where I left off, and monitor it from here. Is this possible? The best solution is to install the sysutils/screen port and run your build process in a window under that. Then you can attach to that screen session from any number of other logins (at the same time even). As a side-effect, screen will protect you from accidental terminal disconnections (if you close your xterm or ssh disconnects on you, screen will detach the session and it will run headless until you reattach to it). The next-best is to use the /usr/sbin/watch command to attach to an existing tty and see its screen output. You'll need to rebuild your kenel and add the snp device (or load it as a module). Sessions main desktop terminal A [ssh]-- workstation terminal A (where builds are currently being processed) work desktop terminal [ssh]-- main destop terminal B [ssh]-- workstation terminal B I would like to have workstation terminal B intercept workstation terminal A, or main desktop terminal B intercept main desktop terminal A. Can it be done? Where do I start looking, what are the words and phrases of interest? I tried looking at both the bash and xterm commands/man page, but they are rather long, and I'd miss what I was looking for without having a clue in advance. I'm guessing something like /dev/?tty?? might work, but how do I figure out which tty to use? -- Dan Nelson [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: attaching a terminal to 'join' another?
On 8/2/07, Jim Stapleton [EMAIL PROTECTED] wrote: On 8/2/07, Jeremy Gransden [EMAIL PROTECTED] wrote: On 8/2/07, Jim Stapleton [EMAIL PROTECTED] wrote: Sorry if my question is a bit confusing - I'm not even sure the proper terminology, so I don't know what the best way to start looking is. I'm rebuilding a system at home, and I'd like to check how the build is going at a slow time at work sometimes. I can connect to the system from work (ssh into my main box, and then from there, ssh to the system I'm working on). I have a terminal opened on that system (actually, another ssh session fron the main box), and I'd like to have my new connection attach to that terminal session, if possible, so that I can just pick up where I left off, and monitor it from here. Is this possible? Maybe your looking for screen. try man screen for more details. thanks, jeremy I was actually thinking console for that part of the terminology, but yeah, that's what I want to attach to, the man page didn't tell me how though. This seemed relevant: Output to a virtual console that not currently is on the display is saved in a buffer that holds a screenfull (normally 25) lines. Any output written to /dev/console (the original console device) is echoed to /dev/ttyv0. However, cat'ing and less'ing the device did nothing, except act as if it were waiting for input, and none was coming. I however did find out which screen I'm on using ps -A and grep: [EMAIL PROTECTED] 12:01:15 (0) /ports/java/diablo-jdk15 ps -A | grep tty sjss 0.0 0 0:00.33 0.6 0 00 26343 26339 sshd: [EMAIL PROTECTED] (sshd) sjss 0.0 0 0:09.61 0.5 0 00 43906 43903 sshd: [EMAIL PROTECTED] (sshd) So, I want to see what is going on with ttyp0 ttyp0 Thanks, -Jim Stapleton I guess i was a little vauge. sorry. What you will need to do is run the program screen, (sysutils/screen), on the macine that you will want to monitor, BEFORE you start your processes. the man page should be able to tell you how to attach/detach from the screen session. I use this all the time in much the same manner as you are trying. thanks, jeremy ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: attaching a terminal to 'join' another?
On 8/2/07, Jeremy Gransden [EMAIL PROTECTED] wrote: On 8/2/07, Jim Stapleton [EMAIL PROTECTED] wrote: On 8/2/07, Jeremy Gransden [EMAIL PROTECTED] wrote: On 8/2/07, Jim Stapleton [EMAIL PROTECTED] wrote: Sorry if my question is a bit confusing - I'm not even sure the proper terminology, so I don't know what the best way to start looking is. I'm rebuilding a system at home, and I'd like to check how the build is going at a slow time at work sometimes. I can connect to the system from work (ssh into my main box, and then from there, ssh to the system I'm working on). I have a terminal opened on that system (actually, another ssh session fron the main box), and I'd like to have my new connection attach to that terminal session, if possible, so that I can just pick up where I left off, and monitor it from here. Is this possible? Maybe your looking for screen. try man screen for more details. thanks, jeremy I was actually thinking console for that part of the terminology, but yeah, that's what I want to attach to, the man page didn't tell me how though. This seemed relevant: Output to a virtual console that not currently is on the display is saved in a buffer that holds a screenfull (normally 25) lines. Any output written to /dev/console (the original console device) is echoed to /dev/ttyv0. However, cat'ing and less'ing the device did nothing, except act as if it were waiting for input, and none was coming. I however did find out which screen I'm on using ps -A and grep: [EMAIL PROTECTED] 12:01:15 (0) /ports/java/diablo-jdk15 ps -A | grep tty sjss 0.0 0 0:00.33 0.6 0 00 26343 26339 sshd: [EMAIL PROTECTED] (sshd) sjss 0.0 0 0:09.61 0.5 0 00 43906 43903 sshd: [EMAIL PROTECTED] (sshd) So, I want to see what is going on with ttyp0 ttyp0 Thanks, -Jim Stapleton I guess i was a little vauge. sorry. What you will need to do is run the program screen, (sysutils/screen), on the macine that you will want to monitor, BEFORE you start your processes. the man page should be able to tell you how to attach/detach from the screen session. I use this all the time in much the same manner as you are trying. thanks, jeremy OK, I didn't get that about the port. Thanks. I'll install that next. Thanks for the assist everyone. -Jim Stapleton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: attaching a terminal to 'join' another?
Forgot to CC the questions ML. --- Tim Judd [EMAIL PROTECTED] wrote: From Tim Judd Thu Aug 2 15:01:18 2007 Received: from [68.35.175.118] by web62407.mail.re1.yahoo.com via HTTP; Thu, 02 Aug 2007 15:01:18 PDT Date: Thu, 2 Aug 2007 15:01:18 -0700 (PDT) From: Tim Judd [EMAIL PROTECTED] Subject: Re: attaching a terminal to 'join' another? To: [EMAIL PROTECTED] MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Content-Length: 2291 I'm on the digest list, so I copy/paste the message to quote: -QUOTE: Message: 16 Date: Thu, 2 Aug 2007 11:19:21 -0400 From: Jim Stapleton [EMAIL PROTECTED] Subject: attaching a terminal to 'join' another? To: freebsd-questions@freebsd.org Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=ISO-8859-1 Sorry if my question is a bit confusing - I'm not even sure the proper terminology, so I don't know what the best way to start looking is. I'm rebuilding a system at home, and I'd like to check how the build is going at a slow time at work sometimes. I can connect to the system from work (ssh into my main box, and then from there, ssh to the system I'm working on). I have a terminal opened on that system (actually, another ssh session fron the main box), and I'd like to have my new connection attach to that terminal session, if possible, so that I can just pick up where I left off, and monitor it from here. Is this possible? Sessions main desktop terminal A [ssh]-- workstation terminal A (where builds are currently being processed) work desktop terminal [ssh]-- main destop terminal B [ssh]-- workstation terminal B I would like to have workstation terminal B intercept workstation terminal A, or main desktop terminal B intercept main desktop terminal A. Can it be done? Where do I start looking, what are the words and phrases of interest? I tried looking at both the bash and xterm commands/man page, but they are rather long, and I'd miss what I was looking for without having a clue in advance. I'm guessing something like /dev/?tty?? might work, but how do I figure out which tty to use? Thank you, -Jim Stapleton --/QUOTE Can't the OP, Jim, use watch(8) with the -W option to interact w/ the terminal? Nothing wrong with screen, but a built-in utility exists. HTH If opportunity doesn't knock, build a door. I can is a way of life. More and Bigger is not always Better. The road to success is always uphill. Got a little couch potato? Check out fun summer activities for kids. http://search.yahoo.com/search?fr=oni_on_mailp=summer+activities+for+kidscs=bz If opportunity doesn't knock, build a door. I can is a way of life. More and Bigger is not always Better. The road to success is always uphill. Need a vacation? Get great deals to amazing places on Yahoo! Travel. http://travel.yahoo.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]