Bo Peng wrote:
Hi,Here's an example or two:
I was looking for some way that let me have multiple independent log in sessions. For example, a root session in text mode, a user session in X mode and ways to switch between them. Logging out one of them does not affect others. Is there a way to do this?
During the search, I find GNU screen. I was confused by its manual. What is this application for? Can anyone tell me a scenario that it is useful (than a normal terminal)?
Thanks.
I have a shell account on Panix.com (NetBSD, but that's largely irrelevant for this discussion). I use it to do unixy things when I'm stuck at a place w/ M$ software. Plus it gives me the ability to access my account the same no mater where I'm at. Where screen comes into this is that I have a cruddy dial-up connection. Disconnects are not uncommon. Sure, I can reconnect in fairly short order, but if I'm in the middle of reading my mail in pine, or my news in slrn, or chatting in irssi, now I have to relaunch the application, deal w/ dead lock files, especially if I was in the middle of composing a post. Plus, as I'm connecting from a remote location, I don't really have access to virtual terminals like you do when you are setting directly at the console. So having multiple applications open at one time is somewhat difficult. Only one applicaton can be in the foreground at a time in any given login terminal, and the provider discourages multiple logins at the same time. Using screen, I log in once, fire up screen, have my mail in one terminal/screen, news in the next, IRC in the next, and so on and so forth. All these applications are active and running at the same time. As far as they (the applications) are concerned, each one is running in the foreground in its own terminal. Then, if there is a network hiccup, and I get disconnected, I just reconnect to panix, log in, and then invoke screen w/ a couple of options (screen -rd) that tell it to disconnect any other sessions, and reattach to the current running screen, and wala! I'm right back where I left of, never really missing a beat.
Also, screen can be used for remote system administration: log in, fire up screen, fire up a monitoring app like top or whatever in one screen, open a man page in another, start editing a config file in another, oh, wait, you need more info than the man page, so open another window and fire up links/lynx and browse to the software's web site. Now comes the cool part: screen has the ability to cut-n-paste btwn screen windows. If you find something you like, like say you are editing a procmail recipe, and you found something good at Jari's Procmail Tips, you can copy it from the window you are browsing in w/ links, and past it in the window you have vim open editing your .procmailrc file. All remotely, using your keyboard, over a secure ssh session.
I think there was an editorial on screen earlier this year at freshmeat.net, and the latest issue of the Linux Journal has a good article on it as well.
HTH,
nuk
--
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list
