<?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/"
xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"
><channel><title>Move to Iceland &#187; command</title> <atom:link href="http://www.movetoiceland.com/archives/tag/command/feed" rel="self" type="application/rss+xml" /><link>http://www.movetoiceland.com</link> <description></description> <lastBuildDate>Fri, 10 Feb 2012 02:28:55 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/us/</creativeCommons:license> <item><title>Remote diff</title><link>http://www.movetoiceland.com/archives/639</link> <comments>http://www.movetoiceland.com/archives/639#comments</comments> <pubDate>Tue, 29 Apr 2008 15:57:34 +0000</pubDate> <dc:creator>Paul</dc:creator> <category><![CDATA[command]]></category> <category><![CDATA[Computers]]></category> <category><![CDATA[diff]]></category> <category><![CDATA[remote]]></category> <category><![CDATA[shell]]></category> <category><![CDATA[Unix]]></category><guid
isPermaLink="false">http://www.movetoiceland.com/?p=639</guid> <description><![CDATA[I just had a problem to solve: Compare two server config files on two servers to make sure they&#8217;re the same. Rather than using scp to copy the file from one machine to another, I used ssh&#8217;s ability to run commands remotely to get the contents of the file and piped it into diff. Here&#8217;s [...]]]></description> <content:encoded><![CDATA[<p>I just had a problem to solve: Compare two server config files on two servers to make sure they&#8217;re the same. Rather than using scp to copy the file from one machine to another, I used ssh&#8217;s ability to run commands remotely to get the contents of the file and piped it into diff. Here&#8217;s an example:</p><blockquote><pre>ssh user@server1 'cat /path/to/config/file.conf' | diff /path/to/other/config/file.conf -</pre></blockquote><p><br/></p><p>I&#8217;ll leave it as an exercise for the user to write a shell script that will do this automatically, though it should be fairly easy to do.</p> ]]></content:encoded> <wfw:commentRss>http://www.movetoiceland.com/archives/639/feed</wfw:commentRss> <slash:comments>1</slash:comments> <creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/us/</creativeCommons:license> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 20/27 queries in 0.091 seconds using disk: basic

Served from: www.movetoiceland.com @ 2012-02-10 23:37:17 -->
