<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Reliably Broken &#187; screen</title>
	<atom:link href="http://reliablybroken.com/b/tag/screen/feed/" rel="self" type="application/rss+xml" />
	<link>http://reliablybroken.com/b</link>
	<description>It&#039;s a blog: let&#039;s do funch!</description>
	<lastBuildDate>Thu, 01 Dec 2011 21:27:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>Using screen to log a terminal session</title>
		<link>http://reliablybroken.com/b/2009/01/using-screen-to-log-a-terminal-session/</link>
		<comments>http://reliablybroken.com/b/2009/01/using-screen-to-log-a-terminal-session/#comments</comments>
		<pubDate>Tue, 06 Jan 2009 21:58:55 +0000</pubDate>
		<dc:creator>david</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[screen]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://reliablybroken.com/b/?p=27</guid>
		<description><![CDATA[Note to self: use screen when doing a bunch of remote administration stuff over an SSH connection. You can tell it to log the session to a separate file, and can detach the session and log off without having the remote shell be terminated. Then later you can resume the session and haven&#8217;t lost anything. [...]]]></description>
			<content:encoded><![CDATA[<p>Note to self: <a href="http://www.gnu.org/software/screen/">use screen</a> when doing a bunch of remote administration stuff over an SSH connection. You can tell it to log the session to a separate file, and can detach the session and log off without having the remote shell be terminated. Then later you can resume the session and haven&#8217;t lost anything.</p>

<p>To start a shell and log everything to a file, do</p>

<pre><code>screen -L -S mysession
</code></pre>

<p>That drops you into a new shell, and lets you refer to that session later (in case you are ambitious and have many screen sessions running simultaneously). To detach the session type <code>CTRL+a</code> then <code>d</code>. From there you can exit cleanly. To resume the session later, type</p>

<pre><code>screen -r mysession
</code></pre>

<p>The session history will be saved to a file named <code>screenlog.0</code> or similar in the directory where screen was first invoked.</p>

<p><a href="http://www.manpagez.com/man/1/screen/">screen man page online</a> (Hmmm&#8230; looks like the hmug man pages have renamed themselves.)</p>

<p>I should use <code>screen</code> more often. I should also get in the habit of going through the contents of $PATH every time Mac OS X gets updated.</p>
]]></content:encoded>
			<wfw:commentRss>http://reliablybroken.com/b/2009/01/using-screen-to-log-a-terminal-session/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

