<?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>Apache, Linux ,Seo tricks and many more &#187; script</title>
	<atom:link href="http://www.gossiplime.com/tag/script/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gossiplime.com</link>
	<description>This blog is just for all persons to know more about php, apache , linux , seo etc</description>
	<lastBuildDate>Wed, 08 Jul 2009 16:40:40 +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>How do I remove all empty directories?</title>
		<link>http://www.gossiplime.com/2009/06/how-do-i-remove-all-empty-directories/</link>
		<comments>http://www.gossiplime.com/2009/06/how-do-i-remove-all-empty-directories/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 15:40:53 +0000</pubDate>
		<dc:creator>sps</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[commands]]></category>
		<category><![CDATA[delete]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://www.gossiplime.com/?p=322</guid>
		<description><![CDATA[You can use program called cleanlinks. The cleanlinks program searches the directory tree descended from the current directory for symbolic links whose targets do not exist, and removes them. It then removes all empty directories in that directory tree. It was originally created for symbolic links based directories but works with normal directories too. For [...]]]></description>
			<content:encoded><![CDATA[<p>You can use program called cleanlinks. The cleanlinks program searches the directory tree descended from the current directory for symbolic links whose targets do not exist, and removes them. It then removes all empty directories in that directory tree. It was originally created for symbolic links based directories but works with normal directories too.</p>
<p>For example if you want to remove all empty directories from /tmp directory, type the command:</p>
<blockquote><p>$ cd /tmp<br />
$ cleanlinks</p></blockquote>
<p>Please note that cleanlinks command is part of XFree86 project. Another method is to use combination of shell commands in script:</p>
<blockquote><p>#/bin/bash<br />
DIR=&#8221;$1&#8243;<br />
[ -d $DIR ] &amp;&amp; [ $(ls -l $DIR | wc -l) -eq 1  ] &amp;&amp; rmdir $DIR ||  :</p></blockquote>
<p>Save and execute a script:</p>
<blockquote><p>$ script.sh dir1</p></blockquote>
<p>You can also try out tmpreaper command which recursively searches for and removes files and empty directories which haven&#8217;t been accessed for a given number of seconds. Normally, it&#8217;s used to clean up directories which are used for temporary holding space, such as &#8220;/tmp&#8221;. Syntax is as follows:<br />
<strong>tmpreaper TIME-FORMAT DIRS</strong></p>
<p>Where,</p>
<ul>
<li>TIME-FORMAT : Defines the age threshold for removing files. The TIME-FORMAT should be a number, defaulting to hours, optionally suffixed by one character: d for days, h for hours, m for minutes, or s for seconds.</li>
<li>DIRS : Directory name for example /tmp</li>
</ul>
<p>For example, remove all files accessed 24h before:</p>
<p># tmpreaper 24h /tmp</p>
<p>Please note that tmpreaper command is not installed by default you may need to install it using apt-get or rpm command.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gossiplime.com/2009/06/how-do-i-remove-all-empty-directories/feed/</wfw:commentRss>
		<slash:comments>23</slash:comments>
		</item>
		<item>
		<title>IP script php</title>
		<link>http://www.gossiplime.com/2009/02/ip-script-php/</link>
		<comments>http://www.gossiplime.com/2009/02/ip-script-php/#comments</comments>
		<pubDate>Mon, 02 Feb 2009 15:17:36 +0000</pubDate>
		<dc:creator>sps</dc:creator>
				<category><![CDATA[Scripts]]></category>
		<category><![CDATA[ip]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://www.gossiplime.com/?p=230</guid>
		<description><![CDATA[Hi this is a script to show your ip address &#60;?php $ip = getenv(&#8220;REMOTE_ADDR&#8221;) ; Echo &#8220;Your IP is &#8221; . $ip; ?&#62; and save it with any name like file.php]]></description>
			<content:encoded><![CDATA[<p>Hi this is a script to show your ip address</p>
<p>&lt;?php<br />
$ip = getenv(&#8220;REMOTE_ADDR&#8221;) ;<br />
Echo &#8220;Your IP is &#8221; . $ip;<br />
?&gt;</p>
<p>and save it with any name like file.php</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gossiplime.com/2009/02/ip-script-php/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

