Date: Fri, 29 Jun 2007 10:50:49 +0200 From: "Steve W" <lordboink@gmail.com> To: freebsd-questions@freebsd.org Cc: oim <oim37@mail.ru>, Bill Moran <wmoran@potentialtech.com> Subject: Re: Hello 1 question about close console Message-ID: <73cb07950706290150i1552b0abr2c8a5c1c80a6096a@mail.gmail.com> In-Reply-To: <20070625115202.d07609d9.wmoran@potentialtech.com> References: <E1I2nW5-0009TX-00.oim37-mail-ru@f30.mail.ru> <20070625115202.d07609d9.wmoran@potentialtech.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 25/06/07, Bill Moran <wmoran@potentialtech.com> wrote: > In response to oim <oim37@mail.ru>: > > > 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 "freebsd-questions-unsubscribe@freebsd.org" > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?73cb07950706290150i1552b0abr2c8a5c1c80a6096a>