<?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> &#187; Linux</title>
	<atom:link href="http://bipinb.com/category/linux/feed" rel="self" type="application/rss+xml" />
	<link>http://bipinb.com</link>
	<description></description>
	<lastBuildDate>Tue, 10 Aug 2010 02:14:09 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>mtr &#8211; A network diagnostic tool</title>
		<link>http://bipinb.com/mtr-a-network-diagnostic-tool.htm</link>
		<comments>http://bipinb.com/mtr-a-network-diagnostic-tool.htm#comments</comments>
		<pubDate>Sat, 21 Nov 2009 10:32:10 +0000</pubDate>
		<dc:creator>Bipin Balakrishnan</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[finding packet loss]]></category>
		<category><![CDATA[mtr]]></category>
		<category><![CDATA[network diagnostic tool.traceroute]]></category>

		<guid isPermaLink="false">http://bipinb.com/?p=150</guid>
		<description><![CDATA[





mtr(My Trace Route) is a nice network diagnostic tool combines the functionality of the &#8216;traceroute&#8217; and &#8216;ping&#8217; programs and can see even the packet  in the network. It comes along with default installtion if ubuntu. To know more type man mtr or follow here . Typical example if usage is below.
Syntax::
 mtr &#60;IP&#62; -n
Below shows [...]]]></description>
			<content:encoded><![CDATA[<!-- Easy AdSense V2.83 -->
<!-- Post[count: 2] -->
<div class="ezAdsense adsense adsense-leadin" style="text-align:center;margin:12px;"><script type="text/javascript"><!--
google_ad_client = "pub-8516280820391538";
/* 468x60, created 6/14/10 */
google_ad_slot = "2348800126";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div><p><img class="aligncenter size-full wp-image-157" title="bitw1" src="http://bipinb.com/wp-content/uploads/2009/11/bitw11.gif" alt="bitw1" width="150" height="231" /></p>
<p>mtr(My Trace Route) is a nice network diagnostic tool combines the functionality of the &#8216;traceroute&#8217; and &#8216;ping&#8217; programs and can see even the packet  in the network. It comes along with default installtion if ubuntu. To know more type man mtr or follow <a href="http://www.bitwizard.nl/mtr/">here</a> . Typical example if usage is below.<br />
Syntax::
<pre> mtr &lt;IP&gt; -n</pre>
<p>Below shows the trace to an IP with mtr tool</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-151" title="Screenshot" src="http://bipinb.com/wp-content/uploads/2009/11/Screenshot.jpeg" alt="Screenshot" width="640" height="390" /></p>
]]></content:encoded>
			<wfw:commentRss>http://bipinb.com/mtr-a-network-diagnostic-tool.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SOX : The audio manipulation tool</title>
		<link>http://bipinb.com/sox-the-audio-manipulation-tool.htm</link>
		<comments>http://bipinb.com/sox-the-audio-manipulation-tool.htm#comments</comments>
		<pubDate>Sat, 12 Sep 2009 06:02:21 +0000</pubDate>
		<dc:creator>Bipin Balakrishnan</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[audio converter in linux]]></category>
		<category><![CDATA[gsm player]]></category>
		<category><![CDATA[gsm player in linux]]></category>
		<category><![CDATA[sound converter in linux]]></category>
		<category><![CDATA[sox]]></category>

		<guid isPermaLink="false">http://bipinb.com/?p=119</guid>
		<description><![CDATA[




Sox(Sound eXchange, the Swiss Army knife of audio manipulation) is a strong audio manipulation too in linux. SoX reads and writes audio files in most popular formats and can optionally apply effects to them; it can combine multiple input sources, synthesise audio, and, on many systems, act as a general purpose audio player or a [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Sox(Sound eXchange, the Swiss Army knife of audio manipulation) is a strong audio manipulation too in linux. SoX reads and writes audio files in most popular formats and can optionally apply effects to them; it can combine multiple input sources, synthesise audio, and, on many systems, act as a general purpose audio player or a multi-track audio recorder. So it can be told as audio player as well as converter.Till some days before i was searching a linux tool for playing gsm files eventhough i were using sox for sound conversion i didnt noticed that it can play sound files allmost in all format for that we just need to install corresponding codecs .</p>
<p>To install sox</p>
<pre><span style="color: #000000;">$ sudo apt-get install sox</span></pre>
<p>sox supported formats are</p>
<p>AUDIO FILE FORMATS: 8svx aif aifc aiff aiffc al amb au avi avr caf cdda cdr cvs cvsd dat dvms f4 f8 fap ffmpeg flac fssd gsm hcom htk ima ircam la lpc lpc10 lu m4a mat mat4 mat5 maud mp2 mp3 mp4 mpg nist ogg paf prc pvf raw s1 s2 s3 s4 sb sd2 sds sf sl smp snd sndfile sndr sndt sou sox sph sw txw u1 u2 u3 u4 ub ul uw vms voc vorbis vox w64 wav wavpcm wmv wv wve xa xi PLAYLIST FORMATS: m3u pls AUDIO DEVICE DRIVERS: alsa ao oss ossdsp</p>
<p>to get support of all this formats install</p>
<pre>$ apt-get install libsox-fmt-all</pre>
<p>We can play specified file format using the play command which come along with sox.</p>
<p>Eg:</p>
<p><img class="alignnone size-full wp-image-121" title="sox" src="http://bipinb.com/wp-content/uploads/2009/09/sox1.jpeg" alt="sox" width="625" height="195" /></p>
]]></content:encoded>
			<wfw:commentRss>http://bipinb.com/sox-the-audio-manipulation-tool.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Shell script for checking a sytem alive or not</title>
		<link>http://bipinb.com/shell-script-for-checking-a-sytem-alive-or-not.htm</link>
		<comments>http://bipinb.com/shell-script-for-checking-a-sytem-alive-or-not.htm#comments</comments>
		<pubDate>Wed, 07 Jan 2009 12:38:05 +0000</pubDate>
		<dc:creator>Bipin Balakrishnan</dc:creator>
				<category><![CDATA[Shell Scripts]]></category>
		<category><![CDATA[Checking alive system shell script.]]></category>
		<category><![CDATA[Shell script for checking a sytem alive or not]]></category>

		<guid isPermaLink="false">http://bipinb.com/?p=95</guid>
		<description><![CDATA[It is necessary in certain cases we need to check whether the system  or server is alive and if we want some alert like email or sms to inform you that the system is down.We can do it by a simple shell script .All we need is to install a package call fping
fping  is a [...]]]></description>
			<content:encoded><![CDATA[<p>It is necessary in certain cases we need to check whether the system  or server is alive and if we want some alert like email or sms to inform you that the system is down.We can do it by a simple shell script .All we need is to install a package call fping</p>
<p>fping  is a program like ping which uses the Internet Control Message Protocol (ICMP) echo request to determine if a target host is responding.  fping differs from ping in that you can specify any number of targets on the command  line,  or  specify a file containing the lists of targets to ping. Instead of sending to one target until it  times out or replies, fping will send out a ping packet and move on to the next target in a round-robin fashion.<br />
installing command</p>
<pre>sudo apt-get install fping</pre>
<p>Script:</p>
<pre>#!/bin/sh
status=`fping 192.168.1.22 | cut -d ' ' -f 3`
if [ $status != "alive" ]
then
echo 'system is down' //Here use your alert as you like email, sms, voice alert etc
fi</pre>
<p>Will check the system with IP 192.168.1.22 alive or not.Put it as a cron job and schedule the time interval to automatically check system status and get the alert&#8230;:)</p>
]]></content:encoded>
			<wfw:commentRss>http://bipinb.com/shell-script-for-checking-a-sytem-alive-or-not.htm/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>mtop &#8211; MySQL top</title>
		<link>http://bipinb.com/mtop-mysql-top.htm</link>
		<comments>http://bipinb.com/mtop-mysql-top.htm#comments</comments>
		<pubDate>Sat, 26 Jul 2008 16:17:19 +0000</pubDate>
		<dc:creator>Bipin Balakrishnan</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[mtop]]></category>
		<category><![CDATA[mtop - MySQL top]]></category>
		<category><![CDATA[mysql top]]></category>

		<guid isPermaLink="false">http://bipinb.com/?p=85</guid>
		<description><![CDATA[mtop or MySQL top command shows the MySQL commands consuming the greatest time.It  is a command similar as top  which provides a dynamic real-time view of a running system. Top can display system summary information as well as a  list  of  tasks  currently  being managed by the Linux [...]]]></description>
			<content:encoded><![CDATA[<p>mtop or MySQL top command shows the<a href="http://www.mysql.com/" target="_blank"> MySQL</a> commands consuming the greatest time.It  is a command similar as top  which provides a dynamic real-time view of a running system. <a href="http://en.wikipedia.org/wiki/Top_(Unix)" target="_blank">Top</a> can display system summary information as well as a  list  of  tasks  currently  being managed by the Linux kernel.Difference is that mtop show only the MySQL tasks.</p>
<p>Normally, run as a console program this will allow you to see slow or badly optimized queries as they will stay on the screen for a while. However, if you are hunting for short lived queries, running in the manualrefresh mode with a short refresh time will allow you to catch short lived queries as well.<br />
Installing mtop</p>
<pre>sudo apt-get install mtop</pre>
]]></content:encoded>
			<wfw:commentRss>http://bipinb.com/mtop-mysql-top.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Securing Web folder with htaccess</title>
		<link>http://bipinb.com/securing-web-folder-with-htaccess.htm</link>
		<comments>http://bipinb.com/securing-web-folder-with-htaccess.htm#comments</comments>
		<pubDate>Thu, 10 Jul 2008 09:42:47 +0000</pubDate>
		<dc:creator>Bipin Balakrishnan</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://bipinb.com/?p=79</guid>
		<description><![CDATA[
Htaccess is a password protection scheme used by Apache Web servers.The web server will ask an authentication to enter if we set a password for it.Here the steps explains how to set an authentication for  the web folder.

 Create a file called .htaccess in your web folder which you want to protect.
Open the file [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://bipinb.com/wp-content/uploads/2008/07/seo.JPG" alt="seo.JPG" height="280" width="257" /></p>
<p>Htaccess is a password protection scheme used by Apache Web servers.The web server will ask an authentication to enter if we set a password for it.Here the steps explains how to set an authentication for  the web folder.</p>
<ol>
<li> Create a file called .htaccess in your web folder which you want to protect.</li>
<li>Open the file .htaccess in your favorite editor.</li>
<li>Paste the lines below.</li>
<pre>AuthUserFile /var/www/.htpasswd
AuthGroupFile /dev/null
AuthName "Protected files"
AuthType Basic
require user bipin</pre>
<li>Change the path of .htpasswd in <strong>AuthUserFile </strong>where you are going to place the .htpasswd file.</li>
<li>Change <strong>AuthName </strong>to from &#8220;Protected files&#8221; to any name you would like.</li>
<li>Change <strong>require user </strong>to any user name you would like to give (This will be the authentication user name it will ask).</li>
<li>issue command htpasswd -c &lt;htpasswd path&gt; &lt;username&gt;              for password setting . For me it is                                                               <strong>htpasswd -c /var/www/.htpasswd bipin</strong></li>
<li>Edit httpd.conf file or the web configuration file of apache.It should be like this.</li>
</ol>
<pre>&lt;Directory /var/www/&gt;
   Options Indexes FollowSymLinks MultiViews
  AllowOverride AuthConfig
 #AllowOverride none
  Order allow,deny
  allow from all
&lt;/Directory&gt;</pre>
<p>Uncomment    <strong>AllowOverride AuthConfig </strong>if it got commented.</p>
<p>Now onwards it will ask an authentication to enter into it.</p>
]]></content:encoded>
			<wfw:commentRss>http://bipinb.com/securing-web-folder-with-htaccess.htm/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Editing boot loader of linux</title>
		<link>http://bipinb.com/editing-boot-loader-of-linux.htm</link>
		<comments>http://bipinb.com/editing-boot-loader-of-linux.htm#comments</comments>
		<pubDate>Mon, 30 Jun 2008 07:20:00 +0000</pubDate>
		<dc:creator>Bipin Balakrishnan</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Editing boot loader]]></category>
		<category><![CDATA[Editing grub]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://bipinb.com/?p=77</guid>
		<description><![CDATA[
By the installation of Linux on a  Windows installed    machine the default loading OS becomes the Linux. If the user want to change the default one we have to edit the boot loader file of linux OS.
The name and disk location of the GRUB configuration file varies from system to system; [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://bipinb.com/wp-content/uploads/2008/06/349711051_12e8f41f59.jpg" alt="349711051_12e8f41f59.jpg" /></p>
<p>By the installation of <a href="http://www.linux.com/" target="_blank">Linux</a> on a  <a href="http://www.microsoft.com/WINDOWS/" target="_blank">Windows </a>installed    machine the default loading OS becomes the Linux. If the user want to change the default one we have to edit the boot loader file of linux OS.</p>
<p>The name and disk location of the GRUB configuration file varies from system to system; for example, in <a href="http://www.ubuntu.com/" target="_blank">Ubuntu</a>, <a href="http://en.wikipedia.org/wiki/Debian_GNU/Linux" class="mw-redirect" title="Debian GNU/Linux">Debian GNU/Linux</a> and <a href="http://en.wikipedia.org/wiki/OpenSUSE" title="OpenSUSE">openSUSE</a> the file is stored in <strong><code>/boot/grub/menu.lst</code> </strong>while <a href="http://en.wikipedia.org/wiki/Fedora_%28Linux_distribution%29" class="mw-redirect" title="Fedora (Linux distribution)">Fedora</a> and <a href="http://en.wikipedia.org/wiki/Gentoo_Linux" title="Gentoo Linux">Gentoo Linux</a> uses <strong><code>/boot/grub/grub.conf</code></strong>. Fedora also provides a <a href="http://en.wikipedia.org/wiki/Symbolic_link" title="Symbolic link">symbolic link</a> from <strong><code>/etc/grub.conf</code> </strong>to <strong><code>/boot/grub/grub.conf</code></strong> for <a href="http://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard" title="Filesystem Hierarchy Standard">FHS</a> compatibility reasons and other distros can establish symbolic links to the three locations.</p>
]]></content:encoded>
			<wfw:commentRss>http://bipinb.com/editing-boot-loader-of-linux.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Monitoring a daemon</title>
		<link>http://bipinb.com/monitoring-a-daemon.htm</link>
		<comments>http://bipinb.com/monitoring-a-daemon.htm#comments</comments>
		<pubDate>Tue, 20 May 2008 17:12:32 +0000</pubDate>
		<dc:creator>Bipin Balakrishnan</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Monitoring a daemon]]></category>
		<category><![CDATA[Monitoring a PHP daemon]]></category>

		<guid isPermaLink="false">http://bipinb.com/?p=69</guid>
		<description><![CDATA[
Well we have created a PHP daemon.One major issue with all daemon is that some time it got killed with out any reason.Here we have a solution for monitoring the daemon with a utility called monit.monit is a utility for managing and monitoring, processes, files, directories and devices on a Unix system. Monit conducts automatic [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://bipinb.com/wp-content/uploads/2008/05/monit-logo.gif" alt="monit-logo.gif" /></p>
<p>Well we have created a PHP daemon.One major issue with all daemon is that some time it got killed with out any reason.Here we have a solution for monitoring the daemon with a utility called monit.monit is a utility for managing and monitoring, processes, files, directories and devices on a Unix system. Monit conducts automatic maintenance and repair and can execute meaningful causal actions in error situations. E.g. monit can start a process if it does not run, restart a process if it does not respond and stop a process if it uses to much resources. You may use monit to monitor files, directories and devices for changes, such as timestamp changes, checksum changes or size changes.<br />
For doing it install the utility first</p>
<pre>sudo apt-get install monit</pre>
<p>We have to edit some configuration file to make the monit work.<br />
Edit   sudo vim /etc/default/monit</p>
<pre>Set startup=1 from 0</pre>
<p>Edit sudo vim /etc/monit/monitrc<br />
This is the file where we specify what to monit<br />
Uncomment</p>
<pre>set daemon  60 #will check the daemon every 1 minute
set httpd port 2812 and
 use address localhost  # only accept connection from localhost
 allow localhost        # allow localhost to connect to the server and
#specifying the program for monitor
check process php with pidfile "/var/run/process.pid"
start = "/usr/bin/php /var/www/voicealerts/process.php"
stop = "/usr/bin/php /var/www/voicealerts/process.php"</pre>
<p>Line 1 starts a process service entry. It contains the keyword check and a descriptive name for he process to monitor, in this case php. Monit also require the process pidfile to be stated.<br />
If you want monit to start, stop or restart the process you must submit a start and stop program.<br />
Line 2-3 defines those programs for this process<br />
Write and quite the file and check the syntax is ok with command</p>
<pre><strong>sudo monit -t</strong></pre>
<p>start monit deamon by</p>
<pre><strong>sudo /etc/init.d/monit start</strong></pre>
<p>start the files specified in the monitrc by</p>
<pre><strong>sudo monit start all</strong></pre>
<p>check the status of our daemon</p>
<pre><strong>sudo monit status</strong></pre>
<p>This is a sample configuration monitors the PHP daemon process mentioned in the above post.</p>
]]></content:encoded>
			<wfw:commentRss>http://bipinb.com/monitoring-a-daemon.htm/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Audacity mp3 export</title>
		<link>http://bipinb.com/audacity-mp3-export.htm</link>
		<comments>http://bipinb.com/audacity-mp3-export.htm#comments</comments>
		<pubDate>Mon, 21 Apr 2008 10:20:46 +0000</pubDate>
		<dc:creator>Bipin Balakrishnan</dc:creator>
				<category><![CDATA[Ubuntu tips and Tricks]]></category>
		<category><![CDATA[Audacity mp3 export]]></category>

		<guid isPermaLink="false">http://bipinb.com/?p=56</guid>
		<description><![CDATA[ 
Audacity is a free digital sound editing application we can import sound format like mp3, wav etc and edit and export to any other sound format.
To install audactiy in ubuntu issue
sudo apt-get install audacity
One of the issue facing with audacity application is that the export to mp3 fromat will not work in the default [...]]]></description>
			<content:encoded><![CDATA[<p> <img src="http://bipinb.com/wp-content/uploads/2008/04/audacityscreen.jpg" alt="audacityscreen.jpg" height="263" width="430" /></p>
<p><strong>Audacity</strong> is a free digital sound editing application we can import sound format like mp3, wav etc and edit and export to any other sound format.</p>
<p>To install audactiy in ubuntu issue</p>
<pre>sudo apt-get install audacity</pre>
<p>One of the issue facing with audacity application is that the export to mp3 fromat will not work in the default installation.This is due to the absence of the lame mp3 encoder.</p>
<p>To solve this install it as follows.</p>
<pre>sudo apt-get install  lame
sudo apt-get install  lame-extras
sudo apt-get install  lame-dev
sudo apt-get install  liblame0</pre>
]]></content:encoded>
			<wfw:commentRss>http://bipinb.com/audacity-mp3-export.htm/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>nmap &#8211; Network exploration tool and security / port scanner</title>
		<link>http://bipinb.com/nmap-nmap-network-exploration-tool-and-security-port-scanner.htm</link>
		<comments>http://bipinb.com/nmap-nmap-network-exploration-tool-and-security-port-scanner.htm#comments</comments>
		<pubDate>Thu, 17 Apr 2008 13:32:04 +0000</pubDate>
		<dc:creator>Bipin Balakrishnan</dc:creator>
				<category><![CDATA[Ubuntu tips and Tricks]]></category>
		<category><![CDATA[nmap]]></category>
		<category><![CDATA[nmap network exploration tool]]></category>
		<category><![CDATA[scanning a network is live with nmap]]></category>

		<guid isPermaLink="false">http://bipinb.com/?p=55</guid>
		<description><![CDATA[Nmap is a tool that can be used to check the network status as well as the status of a particular port.
To install nmap issue
sudo apt-get install nmap
eg:
To check the status of a particular port in the local host we can issue
nmap -p 80 localhost
will give
Starting Nmap 4.53 ( http://insecure.org ) at 2008-04-17 18:58 IST
Interesting [...]]]></description>
			<content:encoded><![CDATA[<p>Nmap is a tool that can be used to check the network status as well as the status of a particular port.</p>
<p>To install nmap issue</p>
<pre>sudo apt-get install nmap</pre>
<p>eg:</p>
<p>To check the status of a particular port in the local host we can issue</p>
<pre>nmap -p 80 localhost</pre>
<p>will give</p>
<p>Starting Nmap 4.53 ( http://insecure.org ) at 2008-04-17 18:58 IST<br />
Interesting ports on localhost (127.0.0.1):<br />
PORT   STATE SERVICE<br />
80/tcp open  http</p>
<p>if its open.Similarly we can give any host name.</p>
<p>For scanning a network is live or not we can give</p>
<pre>nmap -sP -vv 192.168.0.* | grep up</pre>
<p>Host 192.168.0.1 appears to be up.<br />
Host 192.168.0.100 appears to be up.<br />
Host 192.168.0.101 appears to be up.<br />
Host 192.168.0.102 appears to be up.<br />
Host 192.168.0.103 appears to be up.<br />
Host 192.168.0.104 appears to be up.<br />
Host 192.168.0.111 appears to be up.<br />
Host 192.168.0.112 appears to be up.<br />
Host 192.168.0.115 appears to be up.<br />
Host 192.168.0.117 appears to be up.<br />
Nmap done: 256 IP addresses (10 hosts up) scanned in 4.630 seconds</p>
<p>will give this if all are up</p>
]]></content:encoded>
			<wfw:commentRss>http://bipinb.com/nmap-nmap-network-exploration-tool-and-security-port-scanner.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Shell script for ftp download</title>
		<link>http://bipinb.com/shell-script-for-ftp-download.htm</link>
		<comments>http://bipinb.com/shell-script-for-ftp-download.htm#comments</comments>
		<pubDate>Wed, 20 Feb 2008 10:15:25 +0000</pubDate>
		<dc:creator>Bipin Balakrishnan</dc:creator>
				<category><![CDATA[Shell Scripts]]></category>
		<category><![CDATA[Shell script for ftp download]]></category>
		<category><![CDATA[Shell script ftp download]]></category>

		<guid isPermaLink="false">http://bipinb.com/?p=32</guid>
		<description><![CDATA[It is some time necessary to automatically download a file from a ftp server daily.We can automate it by writing a shell script and putting it as a cron.A sample script is show below.When it got run it will login and download the file &#8220;1.txt&#8221; in to the current working folder from the directory &#8220;ftp&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p>It is some time necessary to automatically download a file from a ftp server daily.We can automate it by writing a shell script and putting it as a cron.A sample script is show below.When it got run it will login and download the file &#8220;1.txt&#8221; in to the current working folder from the directory &#8220;ftp&#8221; in the ftp server.</p>
<p>#!/bin/sh<br />
rm 1.txt<br />
HOST=&#8217;213.104.257.88&#8242;<br />
PORT=&#8217;21&#8242;<br />
USER=&#8217;bipin&#8217;<br />
PASSWD=&#8217;bipin&#8217;<br />
FILE=&#8217;1.txt&#8217;<br />
ftp -n $HOST $PORT &lt;&lt;END_SCRIPT<br />
quote USER $USER<br />
quote PASS $PASSWD<br />
cd ftp<br />
bin<br />
get $FILE<br />
quit<br />
END_SCRIPT<br />
exit 0</p>
]]></content:encoded>
			<wfw:commentRss>http://bipinb.com/shell-script-for-ftp-download.htm/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>
