<?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: Screen Command Examples: Get Control of Linux / Unix Terminal</title>
	<atom:link href="http://www.thegeekstuff.com/2010/07/screen-command-examples/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thegeekstuff.com/2010/07/screen-command-examples/</link>
	<description>Guides, HowTos and Tips for Technology Geeks</description>
	<lastBuildDate>Thu, 09 Feb 2012 13:04:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: sage</title>
		<link>http://www.thegeekstuff.com/2010/07/screen-command-examples/comment-page-1/#comment-102405</link>
		<dc:creator>sage</dc:creator>
		<pubDate>Wed, 04 May 2011 07:28:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=4476#comment-102405</guid>
		<description>thanks for this great article actually it helped me a lot to understand this easy and powerful unix command</description>
		<content:encoded><![CDATA[<p>thanks for this great article actually it helped me a lot to understand this easy and powerful unix command</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gaurav</title>
		<link>http://www.thegeekstuff.com/2010/07/screen-command-examples/comment-page-1/#comment-78099</link>
		<dc:creator>Gaurav</dc:creator>
		<pubDate>Sat, 08 Jan 2011 23:36:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=4476#comment-78099</guid>
		<description>Hi,

I want to group 10 unix commands in one shell script which while invoked can run these 10 jobs in parallel, as one job serves the input to the other.

So can I use &quot;screen&quot; command to open a new window each time running a job? and if yes then how should i handle the authentication as it need username and password at every login. 

thanks in advance.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I want to group 10 unix commands in one shell script which while invoked can run these 10 jobs in parallel, as one job serves the input to the other.</p>
<p>So can I use &#8220;screen&#8221; command to open a new window each time running a job? and if yes then how should i handle the authentication as it need username and password at every login. </p>
<p>thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: HakunX3</title>
		<link>http://www.thegeekstuff.com/2010/07/screen-command-examples/comment-page-1/#comment-69192</link>
		<dc:creator>HakunX3</dc:creator>
		<pubDate>Tue, 09 Nov 2010 15:22:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=4476#comment-69192</guid>
		<description>Thank you for a great blog. I have a question.
How can we see exactly the command (name, arguments, etc) which is being handled by screen instead of screen ID? If so, I don&#039;t have to attempt to attach into all ID to find expected handled command.</description>
		<content:encoded><![CDATA[<p>Thank you for a great blog. I have a question.<br />
How can we see exactly the command (name, arguments, etc) which is being handled by screen instead of screen ID? If so, I don&#8217;t have to attempt to attach into all ID to find expected handled command.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy Impson</title>
		<link>http://www.thegeekstuff.com/2010/07/screen-command-examples/comment-page-1/#comment-58298</link>
		<dc:creator>Jeremy Impson</dc:creator>
		<pubDate>Mon, 09 Aug 2010 17:41:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=4476#comment-58298</guid>
		<description>In general I recommend against starting screen like &quot;screen ./unix-command&quot;. When the unix-command exits, the controlling screen will also exit. This will prevent you from seeing any errors, warnings, or output messages. Instead, run &quot;screen&quot; by itself which will cause it to spawn a subshell prompt, then run &quot;unix-command&quot; in the subshell. I do this as my default behaviour so I don&#039;t have to think about whether I need the screen to persist or not.

My logic is that since most things you want to run in screen are long-running tasks that you don&#039;t want interrupted, it&#039;s usually true that you want to see what messages it left on the terminal, especially if it crashed or was killed. 

The downside of this approach is that you can&#039;t start screen sessions programmatically (say, at boot). That hasn&#039;t been a problem for me, but as a work around I suppose you could write a shell script that runs your command then blocks on input (&quot;read X&quot;), then run that script as the article originally describes.</description>
		<content:encoded><![CDATA[<p>In general I recommend against starting screen like &#8220;screen ./unix-command&#8221;. When the unix-command exits, the controlling screen will also exit. This will prevent you from seeing any errors, warnings, or output messages. Instead, run &#8220;screen&#8221; by itself which will cause it to spawn a subshell prompt, then run &#8220;unix-command&#8221; in the subshell. I do this as my default behaviour so I don&#8217;t have to think about whether I need the screen to persist or not.</p>
<p>My logic is that since most things you want to run in screen are long-running tasks that you don&#8217;t want interrupted, it&#8217;s usually true that you want to see what messages it left on the terminal, especially if it crashed or was killed. </p>
<p>The downside of this approach is that you can&#8217;t start screen sessions programmatically (say, at boot). That hasn&#8217;t been a problem for me, but as a work around I suppose you could write a shell script that runs your command then blocks on input (&#8220;read X&#8221;), then run that script as the article originally describes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim Plush</title>
		<link>http://www.thegeekstuff.com/2010/07/screen-command-examples/comment-page-1/#comment-53797</link>
		<dc:creator>Jim Plush</dc:creator>
		<pubDate>Tue, 13 Jul 2010 16:07:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=4476#comment-53797</guid>
		<description>you can also name the screen so when you&#039;re doing screen -ls or screen -r you can use a simple name

screen -S jimtest

screen -r jimtest</description>
		<content:encoded><![CDATA[<p>you can also name the screen so when you&#8217;re doing screen -ls or screen -r you can use a simple name</p>
<p>screen -S jimtest</p>
<p>screen -r jimtest</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://www.thegeekstuff.com/2010/07/screen-command-examples/comment-page-1/#comment-52816</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Thu, 08 Jul 2010 02:49:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=4476#comment-52816</guid>
		<description>So, is this isolated to a per user instance?  If I log in as bob, then log into the same machine as sam, does sam get bob&#039;s screen activity when doing screen -ls?

Also if I sudo to root, does root own the screen instance.  If bob sudos to root, then sam logs in and sudos to root, could sam see the items that bob started after sudo&#039;ing, or is it on a per sudo basis?</description>
		<content:encoded><![CDATA[<p>So, is this isolated to a per user instance?  If I log in as bob, then log into the same machine as sam, does sam get bob&#8217;s screen activity when doing screen -ls?</p>
<p>Also if I sudo to root, does root own the screen instance.  If bob sudos to root, then sam logs in and sudos to root, could sam see the items that bob started after sudo&#8217;ing, or is it on a per sudo basis?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lakshmanan</title>
		<link>http://www.thegeekstuff.com/2010/07/screen-command-examples/comment-page-1/#comment-52679</link>
		<dc:creator>Lakshmanan</dc:creator>
		<pubDate>Wed, 07 Jul 2010 04:54:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=4476#comment-52679</guid>
		<description>Hi,
There is another important usage of screen command, which is sharing a session between multiple users.
Here is the step to achieve that:

* The screen executable has to setuid
      chmod u+s /usr/bin/screen
* Launch a screen session
      screen
      Type ctrl + a and : ( You will get a prompt at the bottom of the screen to type screen commands)
      Type &quot;multiuser on&quot; ( We enabled multiuser session ).
      Press ctrl + a and : again.
      Type aclchg user5 -w &quot;#&quot; ( username is the name of the user to whom we have to share with. -w is to disable write permission to the user )
      
Now login as user5 and type
     screen -x lakshmanan/ 

Now the user5 will be able to see what the user lakshmanan is doing in the screen.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
There is another important usage of screen command, which is sharing a session between multiple users.<br />
Here is the step to achieve that:</p>
<p>* The screen executable has to setuid<br />
      chmod u+s /usr/bin/screen<br />
* Launch a screen session<br />
      screen<br />
      Type ctrl + a and : ( You will get a prompt at the bottom of the screen to type screen commands)<br />
      Type &#8220;multiuser on&#8221; ( We enabled multiuser session ).<br />
      Press ctrl + a and : again.<br />
      Type aclchg user5 -w &#8220;#&#8221; ( username is the name of the user to whom we have to share with. -w is to disable write permission to the user )</p>
<p>Now login as user5 and type<br />
     screen -x lakshmanan/ </p>
<p>Now the user5 will be able to see what the user lakshmanan is doing in the screen.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RO</title>
		<link>http://www.thegeekstuff.com/2010/07/screen-command-examples/comment-page-1/#comment-52593</link>
		<dc:creator>RO</dc:creator>
		<pubDate>Tue, 06 Jul 2010 12:20:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=4476#comment-52593</guid>
		<description>A really huge advantage with using screen (or VNC as I more commonly do), is that when doing work that must not be interrupted, such as an installation or complex update, and your connection may be erratic, you can work from a screen session on a more reliable server, such as inside a corporate data center.   That way, if your PC loses its connection, your work is not lost, and you do not face the tedious process of a backout/restart - instead, you just re-connect to your still-running screen session.  That approach has saved me a lot of grief over the years in supporting important business applications.</description>
		<content:encoded><![CDATA[<p>A really huge advantage with using screen (or VNC as I more commonly do), is that when doing work that must not be interrupted, such as an installation or complex update, and your connection may be erratic, you can work from a screen session on a more reliable server, such as inside a corporate data center.   That way, if your PC loses its connection, your work is not lost, and you do not face the tedious process of a backout/restart &#8211; instead, you just re-connect to your still-running screen session.  That approach has saved me a lot of grief over the years in supporting important business applications.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Psychokiller</title>
		<link>http://www.thegeekstuff.com/2010/07/screen-command-examples/comment-page-1/#comment-52576</link>
		<dc:creator>Psychokiller</dc:creator>
		<pubDate>Tue, 06 Jul 2010 10:41:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=4476#comment-52576</guid>
		<description>Why not tmux instead? 

http://tmux.sourceforge.net/ 

It might seem a clone at first, but definitely better after some time...</description>
		<content:encoded><![CDATA[<p>Why not tmux instead? </p>
<p><a href="http://tmux.sourceforge.net/" rel="nofollow">http://tmux.sourceforge.net/</a> </p>
<p>It might seem a clone at first, but definitely better after some time&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced
Content Delivery Network via Amazon Web Services: CloudFront: static.thegeekstuff.com

Served from: www.thegeekstuff.com @ 2012-02-09 15:33:14 -->
