Re: Hello 1 question about close console
On 25/06/07, Bill Moran [EMAIL PROTECTED] wrote: In response to oim [EMAIL PROTECTED]: Hello! I have a question about this situation. In home work Pc with FreeBSD Server, real ip and real domain name. When i remote connect ssh2 (consose) from my work.. make on server some.. compile program from ports And some time later i need to close console, but i want, what session not close and compile processing. If i disconect from console all job stop. How disconect from console and come back to my session? Thank you very much!!! Install/use /usr/ports/sysutils/screen -- Bill Moran http://www.potentialtech.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Oim, Bill's right, screen is a lifesaver. However, the man page is *enormous*, here's a synopsis: To make a new screen session (ie a console you can attach/detach to/from): $ screen -S caterpillar You will now find yourself in a new terminal. To list open screen sessions: $ screen -ls There is a screen on: 692976.caterpillar (Attached) 1 Socket in /tmp/uscreens/S-your username. Now, to leave this session open, and return to your previous shell: type CTRL + a, then d Now list again: $ screen -ls There is a screen on: 692976.caterpillar (Detached) 1 Socket in /tmp/uscreens/S-your username. If there's only one screen session, you can always re-attach to it directly with $ screen -d -r However, if there is more than one: $ screen -ls There are screens on: 692976.caterpillar (Detached) 460276.butterfly(Attached) 2 Sockets in /tmp/uscreens/S-your username ...you need to specify the one you want: $ screen -r 692976.caterpillar 90% of all I do with screen is with these commands. Hope this helps, Steve ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Hello 1 question about close console
On 29/06/07, Steve W [EMAIL PROTECTED] wrote: On 25/06/07, Bill Moran [EMAIL PROTECTED] wrote: In response to oim [EMAIL PROTECTED]: Hello! I have a question about this situation. In home work Pc with FreeBSD Server, real ip and real domain name. When i remote connect ssh2 (consose) from my work.. make on server some.. compile program from ports And some time later i need to close console, but i want, what session not close and compile processing. If i disconect from console all job stop. How disconect from console and come back to my session? Thank you very much!!! Install/use /usr/ports/sysutils/screen -- Bill Moran http://www.potentialtech.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Oim, Bill's right, screen is a lifesaver. However, the man page is *enormous*, here's a synopsis: To make a new screen session (ie a console you can attach/detach to/from): $ screen -S caterpillar You will now find yourself in a new terminal. To list open screen sessions: $ screen -ls There is a screen on: 692976.caterpillar (Attached) 1 Socket in /tmp/uscreens/S-your username. Now, to leave this session open, and return to your previous shell: type CTRL + a, then d Now list again: $ screen -ls There is a screen on: 692976.caterpillar (Detached) 1 Socket in /tmp/uscreens/S-your username. If there's only one screen session, you can always re-attach to it directly with $ screen -d -r However, if there is more than one: $ screen -ls There are screens on: 692976.caterpillar (Detached) 460276.butterfly(Attached) 2 Sockets in /tmp/uscreens/S-your username ...you need to specify the one you want: $ screen -r 692976.caterpillar 90% of all I do with screen is with these commands. Hope this helps, Steve I forgot: to close a screen session: $ exit [screen is terminating] ...and you're back to your original shell (CTRL+D should work, too). ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Hello 1 question about close console
On 6/25/07, oim [EMAIL PROTECTED] wrote: Hello! I have a question about this situation. In home work Pc with FreeBSD Server, real ip and real domain name. When i remote connect ssh2 (consose) from my work.. make on server some.. compile program from ports And some time later i need to close console, but i want, what session not close and compile processing. If i disconect from console all job stop. How disconect from console and come back to my session? Hi, The most simplest solution to your problem is to `disown' the process. For eg: $ some_process $ disown And if you are using zsh there it is much easier: $ some_process ! And when you exit, the processes will not be killed. Regards, sac. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Hello 1 question about close console
On 6/25/07, oim [EMAIL PROTECTED] wrote: Hello! I have a question about this situation. In home work Pc with FreeBSD Server, real ip and real domain name. When i remote connect ssh2 (consose) from my work.. make on server some.. compile program from ports And some time later i need to close console, but i want, what session not close and compile processing. If i disconect from console all job stop. How disconect from console and come back to my session? Use GNU screen. It's in the ports collection. It lets you start, detach, reattach, and stop sessions. It's very powerful. http://www.gnu.org/software/screen/ And an excellent tutorial: http://gentoo-wiki.com/TIP_Using_screen ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Hello 1 question about close console
Hello! I have a question about this situation. In home work Pc with FreeBSD Server, real ip and real domain name. When i remote connect ssh2 (consose) from my work.. make on server some.. compile program from ports And some time later i need to close console, but i want, what session not close and compile processing. If i disconect from console all job stop. How disconect from console and come back to my session? Thank you very much!!! With Best Regards E.A. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Hello 1 question about close console
In response to oim [EMAIL PROTECTED]: Hello! I have a question about this situation. In home work Pc with FreeBSD Server, real ip and real domain name. When i remote connect ssh2 (consose) from my work.. make on server some.. compile program from ports And some time later i need to close console, but i want, what session not close and compile processing. If i disconect from console all job stop. How disconect from console and come back to my session? Thank you very much!!! Install/use /usr/ports/sysutils/screen -- Bill Moran http://www.potentialtech.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]