<?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>Web Development &#38; Stuff &#187; Linux</title>
	<atom:link href="http://web-development-blog.co.uk/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://web-development-blog.co.uk</link>
	<description>Some interesting findings from web-dev land...</description>
	<lastBuildDate>Mon, 02 Apr 2012 15:10:20 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Linux batch file rename</title>
		<link>http://web-development-blog.co.uk/2011/05/24/linux-batch-file-rename/</link>
		<comments>http://web-development-blog.co.uk/2011/05/24/linux-batch-file-rename/#comments</comments>
		<pubDate>Tue, 24 May 2011 13:59:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux servers]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://web-development-blog.co.uk/?p=448</guid>
		<description><![CDATA[For my own records. Batch file rename using shell:
123Rename all jpg files that contain the string 19_ and replace it with 28_

for file in *.jpg ; do mv $file `echo $file &#124; sed 's/19_/28_/g'` ; done
]]></description>
			<content:encoded><![CDATA[<p>For my own records. Batch file rename using shell:</p>
<div class="codecolorer-container php " style="overflow:auto;white-space:nowrap;width:100%"><table cellspacing="0" cellpadding="0"><tbody><tr><td class="line-numbers"><div>1<br />2<br />3<br /></div></td><td><div class="php codecolorer" style="font-family:Monaco,Lucida Console,monospace"><span class="kw3">Rename</span> all jpg files that contain the string <span class="nu0">19</span>_ and replace it with <span class="nu0">28</span>_<br />
<br />
<span class="kw1">for</span> <span class="kw3">file</span> in <span class="sy0">*.</span>jpg <span class="sy0">;</span> <span class="kw1">do</span> mv <span class="re0">$file</span> `<span class="kw3">echo</span> <span class="re0">$file</span> <span class="sy0">|</span> sed <span class="st_h">'s/19_/28_/g'</span>` <span class="sy0">;</span> done</div></td></tr></tbody></table></div>
]]></content:encoded>
			<wfw:commentRss>http://web-development-blog.co.uk/2011/05/24/linux-batch-file-rename/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>File uploads to PHP scripts hang in Safari bug</title>
		<link>http://web-development-blog.co.uk/2010/06/15/file-uploads-to-php-scripts-hang-in-safari-bug/</link>
		<comments>http://web-development-blog.co.uk/2010/06/15/file-uploads-to-php-scripts-hang-in-safari-bug/#comments</comments>
		<pubDate>Tue, 15 Jun 2010 17:37:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[Linux servers]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web development]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://web-development-blog.co.uk/?p=354</guid>
		<description><![CDATA[I was experiencing this issue with some larger file uploads using the CakePHP Media plugin.
https://bugs.webkit.org/show_bug.cgi?id=5760
I added this to the virtual host declaration in my Apache config file to fix it:
123456&#60;VirtualHost x.x.x.x:x&#62;

&#160; &#160; # Prevent Safari from hanging on uploads
&#160; &#160; BrowserMatch &#160;Safari&#160; nokeepalive

&#60;/VirtualHost&#62;
]]></description>
			<content:encoded><![CDATA[<p>I was experiencing this issue with some larger file uploads using the CakePHP Media plugin.</p>
<p><a href="https://bugs.webkit.org/show_bug.cgi?id=5760">https://bugs.webkit.org/show_bug.cgi?id=5760</a></p>
<p>I added this to the virtual host declaration in my Apache config file to fix it:</p>
<div class="codecolorer-container bash " style="overflow:auto;white-space:nowrap;width:100%"><table cellspacing="0" cellpadding="0"><tbody><tr><td class="line-numbers"><div>1<br />2<br />3<br />4<br />5<br />6<br /></div></td><td><div class="bash codecolorer" style="font-family:Monaco,Lucida Console,monospace"><span class="sy0">&lt;</span>VirtualHost x.x.x.x:x<span class="sy0">&gt;</span><br />
<br />
&nbsp; &nbsp; <span class="co0"># Prevent Safari from hanging on uploads</span><br />
&nbsp; &nbsp; BrowserMatch &nbsp;Safari&nbsp; nokeepalive<br />
<br />
<span class="sy0">&lt;/</span>VirtualHost<span class="sy0">&gt;</span></div></td></tr></tbody></table></div>
]]></content:encoded>
			<wfw:commentRss>http://web-development-blog.co.uk/2010/06/15/file-uploads-to-php-scripts-hang-in-safari-bug/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Set setgid bit (group id) on directory giving group ownership/permissions</title>
		<link>http://web-development-blog.co.uk/2010/01/19/set-setgid-bit-group-id-on-directory-giving-group-ownership-permissions/</link>
		<comments>http://web-development-blog.co.uk/2010/01/19/set-setgid-bit-group-id-on-directory-giving-group-ownership-permissions/#comments</comments>
		<pubDate>Tue, 19 Jan 2010 16:02:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux servers]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://web-development-blog.co.uk/?p=286</guid>
		<description><![CDATA[For my own records, had to look this up again today so thought best blog it:
12sudo chmod -R g+s *
# Would set group permissions recursively for all directories at the current location.
If anyone is interested, files in these directories will have the group ownership as the directory, instead of the group of the user that [...]]]></description>
			<content:encoded><![CDATA[<p>For my own records, had to look this up again today so thought best blog it:</p>
<div class="codecolorer-container bash " style="overflow:auto;white-space:nowrap;width:100%"><table cellspacing="0" cellpadding="0"><tbody><tr><td class="line-numbers"><div>1<br />2<br /></div></td><td><div class="bash codecolorer" style="font-family:Monaco,Lucida Console,monospace"><span class="kw2">sudo</span> <span class="kw2">chmod</span> <span class="re5">-R</span> g+s <span class="sy0">*</span><br />
<span class="co0"># Would set group permissions recursively for all directories at the current location.</span></div></td></tr></tbody></table></div>
<p>If anyone is interested, files in these directories will have the group ownership as the directory, instead of the group of the user that created the file. Which is very handy if you have a user group all working in the same set of directories/directory.</p>
]]></content:encoded>
			<wfw:commentRss>http://web-development-blog.co.uk/2010/01/19/set-setgid-bit-group-id-on-directory-giving-group-ownership-permissions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Loop over svn stat output deleting files</title>
		<link>http://web-development-blog.co.uk/2010/01/14/loop-over-svn-stat-output-deleting-files/</link>
		<comments>http://web-development-blog.co.uk/2010/01/14/loop-over-svn-stat-output-deleting-files/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 14:43:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux servers]]></category>
		<category><![CDATA[Web development]]></category>
		<category><![CDATA[Bash scripting]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Shell scripting]]></category>

		<guid isPermaLink="false">http://web-development-blog.co.uk/?p=274</guid>
		<description><![CDATA[I had the issue where my MacBook creates files prefixed with ._ while working on a Samba share. I&#8217;ve fixed this once before but it was so long ago, I&#8217;ve forgotten how!! Anyway, I had a stack of these files in a checked-out svn project and needed to delete them. Rather than do each one [...]]]></description>
			<content:encoded><![CDATA[<p>I had the issue where my MacBook creates files prefixed with ._ while working on a Samba share. I&#8217;ve fixed this once before but it was so long ago, I&#8217;ve forgotten how!! Anyway, I had a stack of these files in a checked-out svn project and needed to delete them. Rather than do each one individually I put together this Bash command that loops over each line outputted by svn stat, cleans it up and then removes the file.</p>
<div class="codecolorer-container bash " style="overflow:auto;white-space:nowrap;width:100%"><table cellspacing="0" cellpadding="0"><tbody><tr><td class="line-numbers"><div>1<br /></div></td><td><div class="bash codecolorer" style="font-family:Monaco,Lucida Console,monospace"><span class="kw2">svn</span> <span class="kw2">stat</span> <span class="sy0">|</span> <span class="kw2">grep</span> <span class="re5">-F</span> ._ <span class="sy0">|</span> <span class="kw2">sed</span> <span class="st_h">'s/? //'</span> <span class="sy0">|</span> <span class="kw1">while</span> <span class="kw2">read</span> line; <span class="kw1">do</span> <span class="kw2">rm</span> <span class="re5">-f</span> <span class="re1">$line</span>; <span class="kw1">done</span></div></td></tr></tbody></table></div>
<p>The grep -F looks for a literal period (.) in each line. In this case it&#8217;s a period underscore (._) string but we still need the -F.<br />
The sed &#8217;s/? //&#8217; looks for the &#8220;? &#8221; prefix and strips it.<br />
The while loop does the rm -f on each line.</p>
<p>Here&#8217;s another method using xargs instead of a while loop. Also, cut is trimming 9 chars (the file status flag and the whitespace) from the front of outputted line.</p>
<div class="codecolorer-container bash " style="overflow:auto;white-space:nowrap;width:100%"><table cellspacing="0" cellpadding="0"><tbody><tr><td class="line-numbers"><div>1<br /></div></td><td><div class="bash codecolorer" style="font-family:Monaco,Lucida Console,monospace"><span class="kw2">svn</span> <span class="kw2">stat</span> <span class="sy0">|</span> <span class="kw2">grep</span> <span class="re5">-F</span> ._ <span class="sy0">|</span> <span class="kw2">cut</span> <span class="re5">-c9-</span> <span class="sy0">|</span> <span class="kw2">xargs</span> <span class="kw2">rm</span> <span class="re5">-f</span></div></td></tr></tbody></table></div>
]]></content:encoded>
			<wfw:commentRss>http://web-development-blog.co.uk/2010/01/14/loop-over-svn-stat-output-deleting-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Compile and install PHP on live production server</title>
		<link>http://web-development-blog.co.uk/2009/10/07/compile-and-install-php-on-live-production-server/</link>
		<comments>http://web-development-blog.co.uk/2009/10/07/compile-and-install-php-on-live-production-server/#comments</comments>
		<pubDate>Wed, 07 Oct 2009 14:28:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux servers]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web development]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://web-development-blog.co.uk/?p=205</guid>
		<description><![CDATA[I managed to recompile PHP with some new directives and install it on my live production server with minimal downtime.
I followed these steps:
1) Downloaded the source of PHP. I stuck to the same branch (5.2) as there was nothing I required in 5.3.
2) Backed up my /etc/php.ini file.
3) Compiled PHP with ./configure using my old [...]]]></description>
			<content:encoded><![CDATA[<p>I managed to recompile PHP with some new directives and install it on my live production server with minimal downtime.</p>
<p>I followed these steps:</p>
<p>1) Downloaded the source of PHP. I stuck to the same branch (5.2) as there was nothing I required in 5.3.</p>
<p>2) Backed up my /etc/php.ini file.</p>
<p>3) Compiled PHP with ./configure using my old directives plus a few new ones. You can see what directives were used in your last compile by viewing the output of phpinfo()</p>
<p>4) Did the ./make and ./make test</p>
<p>5) Stopped Apache with apachectl stop</p>
<p>6) Did the ./make install</p>
<p>7) Started Apache with apachectl start</p>
<p>Worked perfectly, with about 30 seconds of downtime ;] </p>
<p>On reflection, next time I&#8217;ll use graceful-stop in step 5. As this will allow each Apache process to finish what it&#8217;s doing before stopping.</p>
]]></content:encoded>
			<wfw:commentRss>http://web-development-blog.co.uk/2009/10/07/compile-and-install-php-on-live-production-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Return exit code of previous shell command</title>
		<link>http://web-development-blog.co.uk/2009/10/03/return-exit-code-of-previous-shell-command/</link>
		<comments>http://web-development-blog.co.uk/2009/10/03/return-exit-code-of-previous-shell-command/#comments</comments>
		<pubDate>Sat, 03 Oct 2009 14:45:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux servers]]></category>
		<category><![CDATA[Web development]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[OSX]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[Shell scripting]]></category>

		<guid isPermaLink="false">http://web-development-blog.co.uk/?p=196</guid>
		<description><![CDATA[You can return the exit/return code of the command you just ran in OSX/Linux using this simple command:
1echo $?
This is handy when debugging scripts that rely on shell command return values.
]]></description>
			<content:encoded><![CDATA[<p>You can return the exit/return code of the command you just ran in OSX/Linux using this simple command:</p>
<div class="codecolorer-container mysql " style="overflow:auto;white-space:nowrap;width:100%"><table cellspacing="0" cellpadding="0"><tbody><tr><td class="line-numbers"><div>1<br /></div></td><td><div class="mysql codecolorer" style="font-family:Monaco,Lucida Console,monospace">echo $?</div></td></tr></tbody></table></div>
<p>This is handy when debugging scripts that rely on shell command return values.</p>
]]></content:encoded>
			<wfw:commentRss>http://web-development-blog.co.uk/2009/10/03/return-exit-code-of-previous-shell-command/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bash &#8211; Match exact string in directory listing</title>
		<link>http://web-development-blog.co.uk/2009/04/27/bash-match-exact-string-in-directory-listing/</link>
		<comments>http://web-development-blog.co.uk/2009/04/27/bash-match-exact-string-in-directory-listing/#comments</comments>
		<pubDate>Mon, 27 Apr 2009 16:38:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux servers]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Bash scripting]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[OSX]]></category>
		<category><![CDATA[Shell scripting]]></category>

		<guid isPermaLink="false">http://web-development-blog.co.uk/?p=150</guid>
		<description><![CDATA[Been doing some bash scripting of late, been meaning to for ages. Really enjoying it too!
Anyway, today I needed to match an exact string in a directory listing (ls). To check if a volume on my Mac Book was mounted, so I could backup to it. Or any other drive for that matter. I ended [...]]]></description>
			<content:encoded><![CDATA[<p>Been doing some bash scripting of late, been meaning to for ages. Really enjoying it too!</p>
<p>Anyway, today I needed to match an exact string in a directory listing (ls). To check if a volume on my Mac Book was mounted, so I could backup to it. Or any other drive for that matter. I ended up using this code:</p>
<div class="codecolorer-container bash " style="overflow:auto;white-space:nowrap;width:100%"><table cellspacing="0" cellpadding="0"><tbody><tr><td class="line-numbers"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br /></div></td><td><div class="bash codecolorer" style="font-family:Monaco,Lucida Console,monospace"><span class="co0">#!/bin/bash</span><br />
<span class="kw1">if</span> <span class="br0">&#91;</span> <span class="st0">&quot;$1&quot;</span> <span class="br0">&#93;</span>; <span class="kw1">then</span><br />
&nbsp; <span class="co0"># Look for an exact match of the first passed argument in /Volumes. </span><br />
&nbsp; <span class="co0"># The -x switch matches the string ($1) exactly. The -c switch counts the outputted lines.</span><br />
&nbsp; <span class="kw1">if</span> <span class="br0">&#91;</span> $<span class="br0">&#40;</span><span class="kw2">ls</span> <span class="sy0">/</span>Volumes<span class="sy0">/</span> <span class="sy0">|</span> <span class="kw2">grep</span> <span class="re5">-c</span> <span class="re5">-x</span> <span class="st0">&quot;$1&quot;</span><span class="br0">&#41;</span> == <span class="nu0">1</span> <span class="br0">&#93;</span>; <span class="kw1">then</span><br />
&nbsp; &nbsp; <span class="co0"># Do stuff...</span><br />
&nbsp; <span class="kw1">else</span><br />
&nbsp; &nbsp; <span class="kw3">echo</span> <span class="st_h">'Sorry, but no volume with that name not found.'</span><br />
&nbsp; <span class="kw1">fi</span><br />
<span class="kw1">else</span><br />
&nbsp; <span class="kw3">echo</span> <span class="st_h">'Please pass a destination volume to this backup script as the first command line argument.'</span><br />
<span class="kw1">fi</span><br />
<br />
<span class="co0"># Usage</span><br />
<span class="kw2">bash</span>$ backup.sh <span class="st0">&quot;Volume name&quot;</span></div></td></tr></tbody></table></div>
]]></content:encoded>
			<wfw:commentRss>http://web-development-blog.co.uk/2009/04/27/bash-match-exact-string-in-directory-listing/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Reload bash_profile / profile without starting a new shell session</title>
		<link>http://web-development-blog.co.uk/2009/03/04/reload-bash_profile-profile-without-starting-a-new-shell-session/</link>
		<comments>http://web-development-blog.co.uk/2009/03/04/reload-bash_profile-profile-without-starting-a-new-shell-session/#comments</comments>
		<pubDate>Wed, 04 Mar 2009 14:47:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux servers]]></category>
		<category><![CDATA[Web development]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[OSX]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Shell]]></category>

		<guid isPermaLink="false">http://web-development-blog.co.uk/?p=89</guid>
		<description><![CDATA[I always used to log-out / log-back-in to shell, to allow changes in my .bash_profile to kick in. I&#8217;m guessing this would work in OSX with your .profile file too but I&#8217;ve not tested it. Anyways, I discovered you can reload the script on the fly using:
1source ~/.bash_profile
]]></description>
			<content:encoded><![CDATA[<p>I always used to log-out / log-back-in to shell, to allow changes in my .bash_profile to kick in. I&#8217;m guessing this would work in OSX with your .profile file too but I&#8217;ve not tested it. Anyways, I discovered you can reload the script on the fly using:</p>
<div class="codecolorer-container sql " style="overflow:auto;white-space:nowrap;width:100%"><table cellspacing="0" cellpadding="0"><tbody><tr><td class="line-numbers"><div>1<br /></div></td><td><div class="sql codecolorer" style="font-family:Monaco,Lucida Console,monospace">source ~<span class="sy0">/.</span>bash_profile</div></td></tr></tbody></table></div>
]]></content:encoded>
			<wfw:commentRss>http://web-development-blog.co.uk/2009/03/04/reload-bash_profile-profile-without-starting-a-new-shell-session/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Mount remote file system on your local file system over SSH &#8211; SSHFS</title>
		<link>http://web-development-blog.co.uk/2009/02/25/mount-remote-file-system-on-your-local-file-system-ssh-sshfs/</link>
		<comments>http://web-development-blog.co.uk/2009/02/25/mount-remote-file-system-on-your-local-file-system-ssh-sshfs/#comments</comments>
		<pubDate>Wed, 25 Feb 2009 23:07:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux servers]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Web development]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[OSX]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Shell]]></category>

		<guid isPermaLink="false">http://web-development-blog.co.uk/?p=80</guid>
		<description><![CDATA[Lots of love going about today! This time, the recipient is SSHFS which allows you to mount a remote filing system onto your local tree over SSH. In a virtual hosting environment (/vhosts/ etc) it&#8217;s pure joy to work with.
You&#8217;ll need to install SSHFS on the client (the machine you want to mount the remote [...]]]></description>
			<content:encoded><![CDATA[<p>Lots of love going about today! This time, the recipient is SSHFS which allows you to mount a remote filing system onto your local tree over SSH. In a virtual hosting environment (/vhosts/ etc) it&#8217;s pure joy to work with.</p>
<p>You&#8217;ll need to install SSHFS on the client (the machine you want to mount the remote system on). All you need on the remote system is SSH. This is already installed on most systems.</p>
<p>You can install SSHFS on OSX with Mac Ports:</p>
<div class="codecolorer-container sql " style="overflow:auto;white-space:nowrap;width:100%"><table cellspacing="0" cellpadding="0"><tbody><tr><td class="line-numbers"><div>1<br /></div></td><td><div class="sql codecolorer" style="font-family:Monaco,Lucida Console,monospace">port install sshfs</div></td></tr></tbody></table></div>
<p>On the local client system add the user you&#8217;re going to connect with to the fuse group. That group was created when you installed SSHFS:</p>
<div class="codecolorer-container text " style="overflow:auto;white-space:nowrap;width:100%"><table cellspacing="0" cellpadding="0"><tbody><tr><td class="line-numbers"><div>1<br /></div></td><td><div class="text codecolorer" style="font-family:Monaco,Lucida Console,monospace">gpasswd -a localuser fuse</div></td></tr></tbody></table></div>
<p>Create a directory on the local filing system to use as a mount point:</p>
<div class="codecolorer-container text " style="overflow:auto;white-space:nowrap;width:100%"><table cellspacing="0" cellpadding="0"><tbody><tr><td class="line-numbers"><div>1<br /></div></td><td><div class="text codecolorer" style="font-family:Monaco,Lucida Console,monospace">mkdir /vhosts_servername/</div></td></tr></tbody></table></div>
<p>Now connect to the remote system using a command line like this on the client:</p>
<div class="codecolorer-container text " style="overflow:auto;white-space:nowrap;width:100%"><table cellspacing="0" cellpadding="0"><tbody><tr><td class="line-numbers"><div>1<br /></div></td><td><div class="text codecolorer" style="font-family:Monaco,Lucida Console,monospace">sshfs localuser@yourdomain.com:/remote_directory/ /vhosts_servername</div></td></tr></tbody></table></div>
<p>Nice ;]</p>
]]></content:encoded>
			<wfw:commentRss>http://web-development-blog.co.uk/2009/02/25/mount-remote-file-system-on-your-local-file-system-ssh-sshfs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL export SQL query as file</title>
		<link>http://web-development-blog.co.uk/2009/01/18/mysql-export-sql-query-as-file/</link>
		<comments>http://web-development-blog.co.uk/2009/01/18/mysql-export-sql-query-as-file/#comments</comments>
		<pubDate>Sun, 18 Jan 2009 10:35:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux servers]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Web development]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Shell]]></category>

		<guid isPermaLink="false">http://web-development-blog.co.uk/2009/01/18/mysql-export-sql-query-as-file/</guid>
		<description><![CDATA[This will dump an SQL statement into a file:
1mysql -u username -p database_name -e &#34;SQL_STATEMENT&#34; &#38;gt; file.data
]]></description>
			<content:encoded><![CDATA[<p>This will dump an SQL statement into a file:</p>
<div class="codecolorer-container html4strict " style="overflow:auto;white-space:nowrap;width:100%"><table cellspacing="0" cellpadding="0"><tbody><tr><td class="line-numbers"><div>1<br /></div></td><td><div class="html4strict codecolorer" style="font-family:Monaco,Lucida Console,monospace">mysql -u username -p database_name -e &quot;SQL_STATEMENT&quot; <span class="sc1">&amp;gt;</span> file.data</div></td></tr></tbody></table></div>
]]></content:encoded>
			<wfw:commentRss>http://web-development-blog.co.uk/2009/01/18/mysql-export-sql-query-as-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

