More screen coolness: The -x flag

From kmandla.wordpress.com

As if screen wasn’t cool enough to start with, here’s a little bonus to make your day a wee bit brighter: There’s an -x flag for screen, which the man page and screen’s own –help tips suggest you can use to attach to a screen session that’s not detached. “Multi-user mode,” is what is added in parenthesis.

It sounds trivial, but at the same time suggests an impending train wreck. The idea of more than one person using a screen session brings to mind words like “race condition” and “wheel war.” And besides, there’s only one keyboard on most computers, so who’s going to want to huddle up next to their friend, and play two sessions of Stone Soup at the same time?

Yes, in the conventional “one keyboard one user” sense, it doesn’t sound like fun. But try it this way: Get to machines networked, and allow one to access the other with something like ssh. This is the setup I usually have for a music system, which sits on the other side of the house next to the router, and connected to the stereo. See here.

Now start up screen on the host machine, and keep it running in an open terminal. Then connect remotely and attach to the same screen session with the -x flag. Chances are if you’re in a position to watch both the original session and the remote session at the same time, you can do cool things and both screens will update together.

read more here…

g33kadmin

I am a g33k, Linux blogger, developer, student and Tech Writer for Liquidweb.com/kb. My passion for all things tech drives my hunt for all the coolz. I often need a vacation after I get back from vacation....

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.