<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: useful screen bash function</title>
	<atom:link href="http://explanatorygap.net/2008/05/14/useful-screen-bash-function/feed/" rel="self" type="application/rss+xml" />
	<link>http://explanatorygap.net/2008/05/14/useful-screen-bash-function/</link>
	<description>many a slip 'twixt mind and lip...</description>
	<lastBuildDate>Mon, 10 May 2010 22:46:00 -0600</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: nigel kersten</title>
		<link>http://explanatorygap.net/2008/05/14/useful-screen-bash-function/comment-page-1/#comment-1771</link>
		<dc:creator>nigel kersten</dc:creator>
		<pubDate>Sat, 20 Jun 2009 20:59:55 +0000</pubDate>
		<guid isPermaLink="false">http://explanatorygap.net/2008/05/14/useful-screen-bash-function/#comment-1771</guid>
		<description>I actually fixed up the formatting, so it should look ok now?

I quite like the way you&#039;ve done that.... installing dialog via MacPorts now to check it out.</description>
		<content:encoded><![CDATA[<p>I actually fixed up the formatting, so it should look ok now?</p>
<p>I quite like the way you&#8217;ve done that&#8230;. installing dialog via MacPorts now to check it out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe McDonagh</title>
		<link>http://explanatorygap.net/2008/05/14/useful-screen-bash-function/comment-page-1/#comment-1770</link>
		<dc:creator>Joe McDonagh</dc:creator>
		<pubDate>Sat, 20 Jun 2009 19:47:47 +0000</pubDate>
		<guid isPermaLink="false">http://explanatorygap.net/2008/05/14/useful-screen-bash-function/#comment-1770</guid>
		<description>Formatting&#039;s all destroyed above, sorry. I&#039;ll post it on my blog in the right format</description>
		<content:encoded><![CDATA[<p>Formatting&#8217;s all destroyed above, sorry. I&#8217;ll post it on my blog in the right format</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe McDonagh</title>
		<link>http://explanatorygap.net/2008/05/14/useful-screen-bash-function/comment-page-1/#comment-1769</link>
		<dc:creator>Joe McDonagh</dc:creator>
		<pubDate>Sat, 20 Jun 2009 19:47:08 +0000</pubDate>
		<guid isPermaLink="false">http://explanatorygap.net/2008/05/14/useful-screen-bash-function/#comment-1769</guid>
		<description>I have a little function that draws a menu of screen sessions, it uses a known non-portable switch for dialog (--stdout) but works nicely on my leenuckz box. I don&#039;t have a mac to test it:

&lt;pre&gt;
#!/bin/bash
CHOICE=`dialog --stdout \
               --menu &quot;Screen Sessions&quot; 0 0 0 \
               $(screen -ls \
                 &#124; sed -e 1d -e &#039;$d&#039; \
                 &#124; sed &#039;$d&#039; \
                 &#124; tr -d &#039;(&#039; \
                 &#124; awk &#039;{ print $1&quot; &quot;$2 }&#039;)`

screen -x $CHOICE
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>I have a little function that draws a menu of screen sessions, it uses a known non-portable switch for dialog (&#8211;stdout) but works nicely on my leenuckz box. I don&#8217;t have a mac to test it:</p>
<pre>
#!/bin/bash
CHOICE=`dialog --stdout \
               --menu "Screen Sessions" 0 0 0 \
               $(screen -ls \
                 | sed -e 1d -e '$d' \
                 | sed '$d' \
                 | tr -d '(' \
                 | awk '{ print $1" "$2 }')`

screen -x $CHOICE
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: nigel kersten</title>
		<link>http://explanatorygap.net/2008/05/14/useful-screen-bash-function/comment-page-1/#comment-1559</link>
		<dc:creator>nigel kersten</dc:creator>
		<pubDate>Mon, 08 Sep 2008 15:16:07 +0000</pubDate>
		<guid isPermaLink="false">http://explanatorygap.net/2008/05/14/useful-screen-bash-function/#comment-1559</guid>
		<description>I&#039;ve been trying to think why I like having multiple screen instances, and my only conclusion is that I&#039;m used to it. I do use screen -x sometimes, but not consistently.

I do also have different profiles set up due to some internal tools I use requiring different keyboard layouts, backspace/delete, term emulators, etc etc, so I guess that&#039;s part of it. I could just try and work out a unified profile...</description>
		<content:encoded><![CDATA[<p>I&#8217;ve been trying to think why I like having multiple screen instances, and my only conclusion is that I&#8217;m used to it. I do use screen -x sometimes, but not consistently.</p>
<p>I do also have different profiles set up due to some internal tools I use requiring different keyboard layouts, backspace/delete, term emulators, etc etc, so I guess that&#8217;s part of it. I could just try and work out a unified profile&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: charlie</title>
		<link>http://explanatorygap.net/2008/05/14/useful-screen-bash-function/comment-page-1/#comment-1558</link>
		<dc:creator>charlie</dc:creator>
		<pubDate>Mon, 08 Sep 2008 12:16:22 +0000</pubDate>
		<guid isPermaLink="false">http://explanatorygap.net/2008/05/14/useful-screen-bash-function/#comment-1558</guid>
		<description>Yet another nifty function using screen (kind of plaything):

Screensaver as desktop background

http://codesnippets.joyent.com/posts/show/1508</description>
		<content:encoded><![CDATA[<p>Yet another nifty function using screen (kind of plaything):</p>
<p>Screensaver as desktop background</p>
<p><a href="http://codesnippets.joyent.com/posts/show/1508" rel="nofollow">http://codesnippets.joyent.com/posts/show/1508</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dre</title>
		<link>http://explanatorygap.net/2008/05/14/useful-screen-bash-function/comment-page-1/#comment-1547</link>
		<dc:creator>dre</dc:creator>
		<pubDate>Sat, 09 Aug 2008 02:42:52 +0000</pubDate>
		<guid isPermaLink="false">http://explanatorygap.net/2008/05/14/useful-screen-bash-function/#comment-1547</guid>
		<description>Maybe I&#039;m missing something, but what&#039;s the rationale between using multiple instances of screen, given that you can attach to a single instance as many times as needed (from different terminals / hosts / whatever) using screen -x? Each simultaneous attached client can discretely switch between screen windows...</description>
		<content:encoded><![CDATA[<p>Maybe I&#8217;m missing something, but what&#8217;s the rationale between using multiple instances of screen, given that you can attach to a single instance as many times as needed (from different terminals / hosts / whatever) using screen -x? Each simultaneous attached client can discretely switch between screen windows&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nigel kersten</title>
		<link>http://explanatorygap.net/2008/05/14/useful-screen-bash-function/comment-page-1/#comment-1533</link>
		<dc:creator>nigel kersten</dc:creator>
		<pubDate>Thu, 15 May 2008 13:11:52 +0000</pubDate>
		<guid isPermaLink="false">http://explanatorygap.net/2008/05/14/useful-screen-bash-function/#comment-1533</guid>
		<description>my normal rule with bash is if I&#039;m using arrays, I should rewrite it in something else...

After you explained your setup yesterday, I spent a while trying to use it, but just couldn&#039;t seem to get myself to work like that... 

I never used to need to work out which session to reattach to, but since starting with a 30&quot; monitor attached to my laptop at work, I seem to lose the visual link between sessions when attaching/detaching the monitor and/or network.

Are you still just living in one single terminal instance and doing absolutely everything in screen? That might be the difference... I like having 5 specific terminal windows that have differing screen sessions.</description>
		<content:encoded><![CDATA[<p>my normal rule with bash is if I&#8217;m using arrays, I should rewrite it in something else&#8230;</p>
<p>After you explained your setup yesterday, I spent a while trying to use it, but just couldn&#8217;t seem to get myself to work like that&#8230; </p>
<p>I never used to need to work out which session to reattach to, but since starting with a 30&#8243; monitor attached to my laptop at work, I seem to lose the visual link between sessions when attaching/detaching the monitor and/or network.</p>
<p>Are you still just living in one single terminal instance and doing absolutely everything in screen? That might be the difference&#8230; I like having 5 specific terminal windows that have differing screen sessions.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff McCune</title>
		<link>http://explanatorygap.net/2008/05/14/useful-screen-bash-function/comment-page-1/#comment-1532</link>
		<dc:creator>Jeff McCune</dc:creator>
		<pubDate>Thu, 15 May 2008 12:50:20 +0000</pubDate>
		<guid isPermaLink="false">http://explanatorygap.net/2008/05/14/useful-screen-bash-function/#comment-1532</guid>
		<description>I certainly don&#039;t claim any semblance of betterness, however I&#039;ve never found the need to sort out which screen session to re-attach to.

My fundamental assumption is that there&#039;s one screen session to rule them all.  I call it TRUNK, and it&#039;s bound to ^v rather than ^a.

So, I fire up the main screen session with screen -S TRUNK -e ^vV, and then sub-screen sessions are created inside, like screen -S DEV, screen -S SSH, etc...

So, even though lots of screens are running, I only need to do a screen -rx TRUNK to pick up right where I left off.  I also find it nice to be able to attach multiple terminal windows to the same &quot;trunk&quot; screen session, but viewing different nested screens, e.g. SSH or DEV.  This also effectively allows copying and pasting of text across different ssh endpoints.

Definitely a cool bash function though.  Particularly good example of array use in shell scripts.</description>
		<content:encoded><![CDATA[<p>I certainly don&#8217;t claim any semblance of betterness, however I&#8217;ve never found the need to sort out which screen session to re-attach to.</p>
<p>My fundamental assumption is that there&#8217;s one screen session to rule them all.  I call it TRUNK, and it&#8217;s bound to ^v rather than ^a.</p>
<p>So, I fire up the main screen session with screen -S TRUNK -e ^vV, and then sub-screen sessions are created inside, like screen -S DEV, screen -S SSH, etc&#8230;</p>
<p>So, even though lots of screens are running, I only need to do a screen -rx TRUNK to pick up right where I left off.  I also find it nice to be able to attach multiple terminal windows to the same &#8220;trunk&#8221; screen session, but viewing different nested screens, e.g. SSH or DEV.  This also effectively allows copying and pasting of text across different ssh endpoints.</p>
<p>Definitely a cool bash function though.  Particularly good example of array use in shell scripts.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.977 seconds -->
