<?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>RedHatVN Network &#187; MAC OS</title>
	<atom:link href="http://redhatvn.net/category/mac-os-x/feed" rel="self" type="application/rss+xml" />
	<link>http://redhatvn.net</link>
	<description>Shared Linux problems</description>
	<lastBuildDate>Mon, 31 Oct 2011 07:10:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Fixing that really irritating perl: warning: Setting locale failed</title>
		<link>http://redhatvn.net/fixing-that-really-irritating-perl-warning-setting-locale-failed</link>
		<comments>http://redhatvn.net/fixing-that-really-irritating-perl-warning-setting-locale-failed#comments</comments>
		<pubDate>Fri, 16 Sep 2011 06:43:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MAC OS]]></category>
		<category><![CDATA[shell script]]></category>
		<category><![CDATA[vps]]></category>

		<guid isPermaLink="false">http://redhatvn.net/?p=1618</guid>
		<description><![CDATA[Anytime I’ve been running a perl based script on my leopard box I got this really irritating output with whatever else I was expecting: perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LC_ALL = &#8220;En_US&#8221;, LANG = (unset) are supported and installed on your system. perl: warning: Falling back to [...]]]></description>
			<content:encoded><![CDATA[<div class="google_plus_one"><g:plusone size="medium" count="true" url="http://redhatvn.net/fixing-that-really-irritating-perl-warning-setting-locale-failed"></g:plusone></div><p>Anytime I’ve been running a perl based script on my leopard box I got this really irritating output with whatever else I was expecting:</p>
<blockquote><p>perl: warning: Setting locale failed.<br />
perl: warning: Please check that your locale settings:<br />
LC_ALL = &#8220;En_US&#8221;,<br />
LANG = (unset)<br />
are supported and installed on your system.<br />
perl: warning: Falling back to the standard locale (&#8220;C&#8221;).
</p></blockquote>
<p><span id="more-1618"></span></p>
<p>With a quick Google search I found an answer. Basically the solution / fix is to make sure the following is set in either your ~/.profile or ~/.bashrc or ~/.cshrc</p>
<blockquote><p># This setting is for the new UTF-8 terminal support<br />
export LC_CTYPE=en_US.UTF-8<br />
export LC_ALL=en_US.UTF-8</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://redhatvn.net/fixing-that-really-irritating-perl-warning-setting-locale-failed/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing wget on Mac OS X</title>
		<link>http://redhatvn.net/installing-wget-on-mac-os-x-2</link>
		<comments>http://redhatvn.net/installing-wget-on-mac-os-x-2#comments</comments>
		<pubDate>Wed, 29 Dec 2010 06:13:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MAC OS]]></category>

		<guid isPermaLink="false">http://redhatvn.net/?p=1423</guid>
		<description><![CDATA[Wget is a great command line for grabbing things from the web, but it doesn’t ship with macs. So if you want to install it here are a few steps: 1. download the source file: http://ftp.gnu.org/pub/gnu/wget/wget-1.11.tar.gz 2. compile and install it: tar -zxvf wget-1.11.tar.gz cd wget-1.11/ ./configure make sudo make install Now the binary file [...]]]></description>
			<content:encoded><![CDATA[<div class="google_plus_one"><g:plusone size="medium" count="true" url="http://redhatvn.net/installing-wget-on-mac-os-x-2"></g:plusone></div><p>Wget is a great command line  for grabbing things from the web, but it doesn’t ship with macs. So if you want to install it here are a few steps:</p>
<p>1. download the source file: <a href="http://ftp.gnu.org/pub/gnu/wget/wget-1.11.tar.gz">http://ftp.gnu.org/pub/gnu/wget/wget-1.11.tar.gz</a><br />
2. compile and install it:<br />
<span id="more-1423"></span><br />
<code>tar -zxvf wget-1.11.tar.gz<br />
cd wget-1.11/<br />
./configure<br />
make<br />
sudo make install</code></p>
<p>Now the binary file is located in /usr/local/bin/. If you use bash as your default shell then you can add:</p>
<blockquote><p>PATH=$PATH:/usr/local/bin; export PATH</p></blockquote>
<p>in your <em>.bash_profile</em>.</p>
<p>Or if you want, you can do a symbolic link to have it in /usr/bin/:</p>
<p><code>sudo ln -s /usr/local/bin/wget /usr/bin/wget</code></p>
<p>That’s all and … happy downloading.</p>
]]></content:encoded>
			<wfw:commentRss>http://redhatvn.net/installing-wget-on-mac-os-x-2/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Restart Apache 2 In Mac OS X</title>
		<link>http://redhatvn.net/restart-apache-2-in-mac-os-x</link>
		<comments>http://redhatvn.net/restart-apache-2-in-mac-os-x#comments</comments>
		<pubDate>Thu, 16 Dec 2010 04:01:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MAC OS]]></category>

		<guid isPermaLink="false">http://redhatvn.net/?p=1366</guid>
		<description><![CDATA[How do I restart the Apache 2 Web Server under Apple OS X UNIX operating systems using bash command prompt? Open a terminal and than type the following command to restart the apache 2 web server: $ sudo /usr/sbin/apachectl restart OR $ sudo apachectl -k restart]]></description>
			<content:encoded><![CDATA[<div class="google_plus_one"><g:plusone size="medium" count="true" url="http://redhatvn.net/restart-apache-2-in-mac-os-x"></g:plusone></div><p>How do I restart the Apache 2 Web Server under Apple OS X UNIX operating systems using bash command prompt?</p>
<p>Open a terminal and than type the following command to restart the apache 2 web server:<br />
<code>$ sudo /usr/sbin/apachectl restart</code><br />
OR<br />
<code>$ sudo apachectl -k restart</code></p>
]]></content:encoded>
			<wfw:commentRss>http://redhatvn.net/restart-apache-2-in-mac-os-x/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>UNIX / Linux: Deleting Multiple Files In Bulk</title>
		<link>http://redhatvn.net/unix-linux-deleting-multiple-files-in-bulk</link>
		<comments>http://redhatvn.net/unix-linux-deleting-multiple-files-in-bulk#comments</comments>
		<pubDate>Thu, 16 Dec 2010 04:35:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[Directadmin]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MAC OS]]></category>
		<category><![CDATA[vps]]></category>

		<guid isPermaLink="false">http://redhatvn.net/?p=1371</guid>
		<description><![CDATA[How do delete multiple files in bulk (say all *.bak file stored in /netapp/ and its subdirectory) under Linux / UNIX operating systems? You can use the find command as follows to find and delete file in bulk: find /path/to/delete -type f -iname "fileType" -delete OR find /path/to/delete -type f -iname "fileType" -exec rm -f [...]]]></description>
			<content:encoded><![CDATA[<div class="google_plus_one"><g:plusone size="medium" count="true" url="http://redhatvn.net/unix-linux-deleting-multiple-files-in-bulk"></g:plusone></div><p>How do delete multiple files in bulk  (say all *.bak file stored in /netapp/ and its subdirectory) under Linux  / UNIX operating systems?</p>
<p>You can use the find command as follows to find and delete file in bulk:<br />
<span id="more-1371"></span><br />
<code>find /path/to/delete -type f -iname "fileType" -delete</code></p>
<p>OR</p>
<p><code>find /path/to/delete -type f -iname "fileType" -exec rm -f {} \;</code></p>
<p>To delete all *.bak files in bulk from /netapp/ and its subdirectory, enter:<br />
<code># find /netapp/ -type f -iname "*.bak" -delete</code><br />
OR<br />
<code># find /netapp/ -type f -iname "*.bak" -exec rm -f {} \;</code></p>
<h2>Shell Scripting Example</h2>
<p>In this example, you&#8217;ve a file called delete.txt (with 5000 entries, each per line) and you need to delete all those files:</p>
<blockquote><p>/netapp/one.txt<br />
/netapp/dir2/one.txt<br />
/netapp/dir1/dir500/one.txt<br />
&#8230;.<br />
&#8230;<br />
&#8230;.<br />
/netapp/fivek.txt</p></blockquote>
<p>Create a shell script as follows to read a <a href="http://www.cyberciti.biz/faq/shell-script-while-loop-examples/">text file using while loop</a> one line at a time:</p>
<blockquote><p>#!/bin/bash<br />
_input=&#8221;/path/to/delete.txt&#8221;<br />
[ ! -f "$_input" ] &amp;&amp; { echo &#8220;File ${_input} not found.&#8221;; exit 1; }<br />
while IFS= read -r line<br />
do<br />
	[ -f "$line" ] &amp;&amp; rm -f &#8220;$line&#8221;<br />
done &lt; &#8220;${_line}&#8221;</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://redhatvn.net/unix-linux-deleting-multiple-files-in-bulk/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing wget on Mac OS X</title>
		<link>http://redhatvn.net/installing-wget-on-mac-os-x</link>
		<comments>http://redhatvn.net/installing-wget-on-mac-os-x#comments</comments>
		<pubDate>Tue, 07 Sep 2010 08:00:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MAC OS]]></category>

		<guid isPermaLink="false">http://redhatvn.net/?p=1311</guid>
		<description><![CDATA[Wget is a great command line  for grabbing things from the web, but it doesn’t ship with macs. So if you want to install it here are a few steps: 1. download the source file: http://ftp.gnu.org/pub/gnu/wget/wget-1.11.tar.gz 2. compile and install it: tar -zxvf wget-1.11.tar.gz cd wget-1.11/ ./configure make sudo make install Now the binary file [...]]]></description>
			<content:encoded><![CDATA[<div class="google_plus_one"><g:plusone size="medium" count="true" url="http://redhatvn.net/installing-wget-on-mac-os-x"></g:plusone></div><p><a href="http://www.gnu.org/software/wget/">Wget</a> is a great  command line  for grabbing things from the web, but it doesn’t ship with  macs. So if you want to install it here are a few steps:</p>
<p>1. download the source file: <a href="http://ftp.gnu.org/pub/gnu/wget/wget-1.11.tar.gz">http://ftp.gnu.org/pub/gnu/wget/wget-1.11.tar.gz</a><br />
<span id="more-1311"></span><br />
2. compile and install it:</p>
<p><code>tar -zxvf wget-1.11.tar.gz<br />
cd wget-1.11/<br />
./configure<br />
make<br />
sudo make install<br />
</code></p>
<p>Now the binary file is located in <strong>/usr/local/bin/</strong>. If you use <strong>bash</strong> as your default shell then you can add:</p>
<p><code>PATH=$PATH:/usr/local/bin; export PATH</code></p>
<p>in your <strong>.bash_profile</strong>.</p>
<p>Or if you want, you can do a symbolic link to have it in <strong>/usr/bin/</strong>:</p>
<p><code>sudo ln -s /usr/local/bin/wget /usr/bin/wget</code></p>
<p>That’s all and … happy downloading.</p>
]]></content:encoded>
			<wfw:commentRss>http://redhatvn.net/installing-wget-on-mac-os-x/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
