<?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>The Lost Notebook &#187; shell</title>
	<atom:link href="http://funinc.org/tag/shell/feed" rel="self" type="application/rss+xml" />
	<link>http://funinc.org</link>
	<description>Things that I tend to forget</description>
	<lastBuildDate>Fri, 20 Jan 2012 14:42:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>CLI blogging with Postie (via postie)</title>
		<link>http://funinc.org/20100209/cli-blogging-with-postie</link>
		<comments>http://funinc.org/20100209/cli-blogging-with-postie#comments</comments>
		<pubDate>Tue, 09 Feb 2010 06:44:25 +0000</pubDate>
		<dc:creator>wolf</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[CLI]]></category>
		<category><![CDATA[Postie]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://funinc.org/?p=238</guid>
		<description><![CDATA[Bookmark this category Another blogging test using the postie plugin]]></description>
			<content:encoded><![CDATA[<p><a href="http://funinc.org/category/blogging/">Bookmark this category</a><br />
Another blogging test using the postie plugin</p>
]]></content:encoded>
			<wfw:commentRss>http://funinc.org/20100209/cli-blogging-with-postie/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quick Note</title>
		<link>http://funinc.org/20100204/quick-note</link>
		<comments>http://funinc.org/20100204/quick-note#comments</comments>
		<pubDate>Thu, 04 Feb 2010 09:16:10 +0000</pubDate>
		<dc:creator>wolf</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[testing]]></category>

		<guid isPermaLink="false">http://funinc.org/?p=236</guid>
		<description><![CDATA[Testing the previous entry, and quick-blogging from the shell]]></description>
			<content:encoded><![CDATA[<p>Testing the previous entry, and quick-blogging from the shell</p>
]]></content:encoded>
			<wfw:commentRss>http://funinc.org/20100204/quick-note/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dave&#8217;s Notepad</title>
		<link>http://funinc.org/20100204/daves-notepad</link>
		<comments>http://funinc.org/20100204/daves-notepad#comments</comments>
		<pubDate>Thu, 04 Feb 2010 09:01:39 +0000</pubDate>
		<dc:creator>abdallah</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[Email]]></category>
		<category><![CDATA[Exim]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[MTA]]></category>
		<category><![CDATA[Notepad]]></category>
		<category><![CDATA[Quick]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://funinc.org/20100204/daves-notepad.moo/</guid>
		<description><![CDATA[We were chatting in the morning and my colleague Dave said: echo &#8220;blog post about distro choice&#8221; &#124; mail -s &#8220;blog post&#8221; david@mydomain.org that&#8217;s my &#8216;notepad&#8217;. I thought that was pretty useful, but tried to make it easier by creating a bash alias. Turns out it&#8217;s better to use a bash function instead. (see this [...]]]></description>
			<content:encoded><![CDATA[<p>We were chatting in the morning and my colleague Dave said:</p>
<blockquote><p>echo &#8220;blog post about distro choice&#8221; | mail -s &#8220;blog post&#8221; david@mydomain.org<br />
that&#8217;s my &#8216;notepad&#8217;.  <img src='http://funinc.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />
</p></blockquote>
<p>I thought that was pretty useful, but tried to make it easier by creating a bash alias. Turns out it&#8217;s better to use a bash function instead. (see <a href="http://www.cyberciti.biz/faq/linux-unix-pass-argument-to-alias-command/">this note</a>). So my &#8216;jot&#8217; function is:<br />
<code>function jot() { echo "$1" | mail -s "$2" abdallah@mydomain.com; }</code></p>
<p>I also noticed, that emails sent from my laptop were not reaching. It seems Ubuntu comes with Exim4 as a default MTA. I&#8217;m not too familiar with Exim, so I used the occasion to learn a <a href="http://www.glorat.net/2008/11/ubuntu-804-hardy-gmail-smarthost-setup-with-exim4.html">new trick</a>.</p>
<p>I might use this for micro-blogging next&#8230; let me go set it up <img src='http://funinc.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://funinc.org/20100204/daves-notepad/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Moving SVN repository</title>
		<link>http://funinc.org/20100107/moving-svn-repository</link>
		<comments>http://funinc.org/20100107/moving-svn-repository#comments</comments>
		<pubDate>Thu, 07 Jan 2010 13:55:45 +0000</pubDate>
		<dc:creator>abdallah</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://funinc.org/20100107/moving-svn-repository.moo/</guid>
		<description><![CDATA[I moved the svn repository from my laptop to the server for easier deployment of http://mybox.grat.in Here are the commands I used: on laptop: svnadmin dump /var/svn/repos/ > home-repository.dmp gzip home-repository.dmp scp -P39227 home-repository.dmp.gz mybox.server.xx:/home/myuser on server: mkdir -p /var/svn/repos gunzip home-repository.dmp.gz cd /var/svn/repos/ svnadmin load /var/svn/repos < /home/myuser/home-repository.dmp again on laptop: edited ~/.subversion/config: [tunnels] [...]]]></description>
			<content:encoded><![CDATA[<p>I moved the svn repository from my laptop to the server for easier deployment of http://mybox.grat.in<br />
Here are the commands I used:</p>
<p>on laptop:<br />
<code>svnadmin dump /var/svn/repos/ > home-repository.dmp<br />
gzip home-repository.dmp<br />
scp -P39227 home-repository.dmp.gz mybox.server.xx:/home/myuser<br />
</code></p>
<p>on server:<br />
<code>mkdir -p /var/svn/repos<br />
gunzip home-repository.dmp.gz<br />
cd /var/svn/repos/<br />
svnadmin load /var/svn/repos < /home/myuser/home-repository.dmp</code></p>
<p>again on laptop:<br />
edited ~/.subversion/config:<br />
<code>[tunnels]<br />
sshtunnel = ssh -p 39227</code></p>
<p>then:<br />
<code>svn switch --relocate file:///var/svn/repos/ svn+sshtunnel://mybox.server.xx/var/svn/repos/</code></p>
<p>And check it's all good (in the working copy directory):<br />
<code>svn up<br />
svn info</code></p>
<p>Piece of cake <img src='http://funinc.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://funinc.org/20100107/moving-svn-repository/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

