<?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: Keeping your SSH sessions alive with NOOP</title>
	<atom:link href="http://bashcurescancer.com/keeping-your-ssh-sessions-alive-with-noop.html/feed" rel="self" type="application/rss+xml" />
	<link>http://bashcurescancer.com/keeping-your-ssh-sessions-alive-with-noop.html</link>
	<description>Learn the UNIX/Linux command line</description>
	<lastBuildDate>Mon, 06 Jun 2011 01:35:32 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: jeff</title>
		<link>http://bashcurescancer.com/keeping-your-ssh-sessions-alive-with-noop.html/comment-page-1#comment-19697</link>
		<dc:creator>jeff</dc:creator>
		<pubDate>Sun, 10 Aug 2008 22:53:01 +0000</pubDate>
		<guid isPermaLink="false">http://bashcurescancer.com/keeping-your-ssh-sessions-alive-with-noop.html#comment-19697</guid>
		<description>I&#039;m not familiar with how this is supposed to work.
Do you run this script in the backround, and continue using the ssh window (I&#039;m using secureCRT)?
If so, why do you have to print characters to the screen - can&#039;t you redirect it /dev/null so it doesn&#039;t show up?

Also is the SIGINT caught when you close the window, or when the server tries to close the connection?

Lastly, why do yoave to sleep for a random time?

Thanks,
Jeff</description>
		<content:encoded><![CDATA[<p>I&#8217;m not familiar with how this is supposed to work.<br />
Do you run this script in the backround, and continue using the ssh window (I&#8217;m using secureCRT)?<br />
If so, why do you have to print characters to the screen &#8211; can&#8217;t you redirect it /dev/null so it doesn&#8217;t show up?</p>
<p>Also is the SIGINT caught when you close the window, or when the server tries to close the connection?</p>
<p>Lastly, why do yoave to sleep for a random time?</p>
<p>Thanks,<br />
Jeff</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: danny</title>
		<link>http://bashcurescancer.com/keeping-your-ssh-sessions-alive-with-noop.html/comment-page-1#comment-4765</link>
		<dc:creator>danny</dc:creator>
		<pubDate>Tue, 18 Mar 2008 03:44:33 +0000</pubDate>
		<guid isPermaLink="false">http://bashcurescancer.com/keeping-your-ssh-sessions-alive-with-noop.html#comment-4765</guid>
		<description>Cool tip man, i&#039;ll link to your article later today.</description>
		<content:encoded><![CDATA[<p>Cool tip man, i&#8217;ll link to your article later today.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jacob</title>
		<link>http://bashcurescancer.com/keeping-your-ssh-sessions-alive-with-noop.html/comment-page-1#comment-4756</link>
		<dc:creator>Jacob</dc:creator>
		<pubDate>Mon, 17 Mar 2008 16:16:46 +0000</pubDate>
		<guid isPermaLink="false">http://bashcurescancer.com/keeping-your-ssh-sessions-alive-with-noop.html#comment-4756</guid>
		<description>Hmm - I always used:

ping -i 300 -s 1 yahoo.com

As you mention though, that&#039;s rather ugly when you&#039;re working in the same shell.  I only us it when the sole purpose of my ssh connection is to set up a tunnel for other ports.</description>
		<content:encoded><![CDATA[<p>Hmm &#8211; I always used:</p>
<p>ping -i 300 -s 1 yahoo.com</p>
<p>As you mention though, that&#8217;s rather ugly when you&#8217;re working in the same shell.  I only us it when the sole purpose of my ssh connection is to set up a tunnel for other ports.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MERLiiN</title>
		<link>http://bashcurescancer.com/keeping-your-ssh-sessions-alive-with-noop.html/comment-page-1#comment-4755</link>
		<dc:creator>MERLiiN</dc:creator>
		<pubDate>Mon, 17 Mar 2008 12:45:52 +0000</pubDate>
		<guid isPermaLink="false">http://bashcurescancer.com/keeping-your-ssh-sessions-alive-with-noop.html#comment-4755</guid>
		<description>Craptastic.. your blog accepted my slashes so \\&quot; became &quot;. Probably because you use PHP. Hopefully you can edit the post for me.</description>
		<content:encoded><![CDATA[<p>Craptastic.. your blog accepted my slashes so \\&#8221; became &#8220;. Probably because you use PHP. Hopefully you can edit the post for me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MERLiiN</title>
		<link>http://bashcurescancer.com/keeping-your-ssh-sessions-alive-with-noop.html/comment-page-1#comment-4754</link>
		<dc:creator>MERLiiN</dc:creator>
		<pubDate>Mon, 17 Mar 2008 12:43:41 +0000</pubDate>
		<guid isPermaLink="false">http://bashcurescancer.com/keeping-your-ssh-sessions-alive-with-noop.html#comment-4754</guid>
		<description>Although David&#039;s suggestion is the best practice...

I would probably spawn something like this in the background from my .bashrc file:

#!/bin/sh
X=0
while :
do
  echo -n &quot;33]0;CONNECTED FOR $X SECONDS07&quot;
  sleep 1
done

That should only update your window title and not print anything to your screen. The actual echo string would depend on your shell and terminal. See http://www.faqs.org/docs/Linux-mini/Xterm-Title.html for further details.</description>
		<content:encoded><![CDATA[<p>Although David&#8217;s suggestion is the best practice&#8230;</p>
<p>I would probably spawn something like this in the background from my .bashrc file:</p>
<p>#!/bin/sh<br />
X=0<br />
while :<br />
do<br />
  echo -n &#8220;33]0;CONNECTED FOR $X SECONDS07&#8243;<br />
  sleep 1<br />
done</p>
<p>That should only update your window title and not print anything to your screen. The actual echo string would depend on your shell and terminal. See <a href="http://www.faqs.org/docs/Linux-mini/Xterm-Title.html" rel="nofollow">http://www.faqs.org/docs/Linux-mini/Xterm-Title.html</a> for further details.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: D</title>
		<link>http://bashcurescancer.com/keeping-your-ssh-sessions-alive-with-noop.html/comment-page-1#comment-4690</link>
		<dc:creator>D</dc:creator>
		<pubDate>Fri, 14 Mar 2008 22:48:51 +0000</pubDate>
		<guid isPermaLink="false">http://bashcurescancer.com/keeping-your-ssh-sessions-alive-with-noop.html#comment-4690</guid>
		<description>i just use top to keep my sessions alive, plus i can keep an eye on what&#039;s going on at a glance as well.</description>
		<content:encoded><![CDATA[<p>i just use top to keep my sessions alive, plus i can keep an eye on what&#8217;s going on at a glance as well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://bashcurescancer.com/keeping-your-ssh-sessions-alive-with-noop.html/comment-page-1#comment-4635</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Thu, 13 Mar 2008 13:08:47 +0000</pubDate>
		<guid isPermaLink="false">http://bashcurescancer.com/keeping-your-ssh-sessions-alive-with-noop.html#comment-4635</guid>
		<description>@pb,

Thats a huge improvement over the while true uptime loop.  However, my noop script will not fill your terminal with crap. When  you CTRL-C the script, all output disappears.

Brock</description>
		<content:encoded><![CDATA[<p>@pb,</p>
<p>Thats a huge improvement over the while true uptime loop.  However, my noop script will not fill your terminal with crap. When  you CTRL-C the script, all output disappears.</p>
<p>Brock</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pb</title>
		<link>http://bashcurescancer.com/keeping-your-ssh-sessions-alive-with-noop.html/comment-page-1#comment-4632</link>
		<dc:creator>pb</dc:creator>
		<pubDate>Thu, 13 Mar 2008 10:09:26 +0000</pubDate>
		<guid isPermaLink="false">http://bashcurescancer.com/keeping-your-ssh-sessions-alive-with-noop.html#comment-4632</guid>
		<description>What about just &quot;watch -n99 uptime&quot;?  That seems to work well for me...</description>
		<content:encoded><![CDATA[<p>What about just &#8220;watch -n99 uptime&#8221;?  That seems to work well for me&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://bashcurescancer.com/keeping-your-ssh-sessions-alive-with-noop.html/comment-page-1#comment-4624</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Thu, 13 Mar 2008 04:41:39 +0000</pubDate>
		<guid isPermaLink="false">http://bashcurescancer.com/keeping-your-ssh-sessions-alive-with-noop.html#comment-4624</guid>
		<description>David,

That is a great resource. Thanks for sharing!

I am going to give those ssh and putty options a go.

Brock</description>
		<content:encoded><![CDATA[<p>David,</p>
<p>That is a great resource. Thanks for sharing!</p>
<p>I am going to give those ssh and putty options a go.</p>
<p>Brock</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://bashcurescancer.com/keeping-your-ssh-sessions-alive-with-noop.html/comment-page-1#comment-4621</link>
		<dc:creator>David</dc:creator>
		<pubDate>Thu, 13 Mar 2008 01:20:34 +0000</pubDate>
		<guid isPermaLink="false">http://bashcurescancer.com/keeping-your-ssh-sessions-alive-with-noop.html#comment-4621</guid>
		<description>A better solution is to correctly configure your &quot;TCPKeepAlive&quot; and &quot;ServerAliveInterval&quot; options for your particular SSH connection, see:
http://drupal.star.bnl.gov/STAR/comp/sofi/facility-access/ssh-stable-con</description>
		<content:encoded><![CDATA[<p>A better solution is to correctly configure your &#8220;TCPKeepAlive&#8221; and &#8220;ServerAliveInterval&#8221; options for your particular SSH connection, see:<br />
<a href="http://drupal.star.bnl.gov/STAR/comp/sofi/facility-access/ssh-stable-con" rel="nofollow">http://drupal.star.bnl.gov/STAR/comp/sofi/facility-access/ssh-stable-con</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

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

