<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5927448610716894513</id><updated>2024-09-01T03:25:13.984-07:00</updated><category term="nagios"/><category term="opsview"/><category term="postgres"/><category term="twitter"/><title type='text'>Linux Funda</title><subtitle type='html'>This blog is to share my experience about what I am learning, troubleshooting in my day-to-day life while working on Linux Servers.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://linux-funda.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5927448610716894513/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://linux-funda.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/5927448610716894513/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Prasad</name><uri>http://www.blogger.com/profile/13364954722812023067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://images.orkut.com/orkut/albums/ATgAAAAxEHJfMPC0Fnj0hKyQQHERQjw2Flcfq8GB-sLdsl-cIdVKBeS5T_qsVwZwDwX8L32CDoP4uc-W_g5f55hmPianAJtU9VAHWCSZklj47uFgk2Up00Jz5ilr0Q.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>47</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5927448610716894513.post-715724788034535667</id><published>2019-05-20T04:43:00.002-07:00</published><updated>2019-05-20T04:43:35.568-07:00</updated><title type='text'>HTTP to HTTPs Redirect Loop</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
We are implementing the WordPress site where I am trying to redirect the site from HTTP to HTTPs. Everything is set but still site is not able to redirect to HTTPs then below setting in Wordpress helped me to redirect.&lt;br /&gt;
&lt;br /&gt;
Edit &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;wp-config.php&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;if&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;(($_SERVER[&#39;HTTP_CLOUDFRONT_FORWARDED_PROTO&#39;] ==&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&#39;https&#39;) OR ($_SERVER[&#39;HTTP_X_FORWARDED_PROTO&#39;] ==&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&#39;https&#39;))&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;{$_SERVER[&#39;HTTPS&#39;]=&#39;on&#39;;}&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://linux-funda.blogspot.com/feeds/715724788034535667/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-funda.blogspot.com/2019/05/http-to-https-redirect-loop.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5927448610716894513/posts/default/715724788034535667'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5927448610716894513/posts/default/715724788034535667'/><link rel='alternate' type='text/html' href='http://linux-funda.blogspot.com/2019/05/http-to-https-redirect-loop.html' title='HTTP to HTTPs Redirect Loop'/><author><name>Prasad</name><uri>http://www.blogger.com/profile/13364954722812023067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://images.orkut.com/orkut/albums/ATgAAAAxEHJfMPC0Fnj0hKyQQHERQjw2Flcfq8GB-sLdsl-cIdVKBeS5T_qsVwZwDwX8L32CDoP4uc-W_g5f55hmPianAJtU9VAHWCSZklj47uFgk2Up00Jz5ilr0Q.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5927448610716894513.post-2973778268952608389</id><published>2014-06-11T05:22:00.003-07:00</published><updated>2014-06-11T05:22:44.767-07:00</updated><title type='text'>Checking Passwordless Login Enabled or Not</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
If you want to check if passwordless login enabled or not on the given host then below is the command which can be used to check for the same.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;ssh -o StrictHostKeyChecking=no -o NumberOfPasswordPrompts=0 host0103 &quot;echo hello&quot;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
We can run this in for loop for the number of hosts and it will either print error if password less login is not allowed or print the word &quot;hello&quot; if it is enabled.&amp;nbsp;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://linux-funda.blogspot.com/feeds/2973778268952608389/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-funda.blogspot.com/2014/06/checking-passwordless-login-enabled-or.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5927448610716894513/posts/default/2973778268952608389'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5927448610716894513/posts/default/2973778268952608389'/><link rel='alternate' type='text/html' href='http://linux-funda.blogspot.com/2014/06/checking-passwordless-login-enabled-or.html' title='Checking Passwordless Login Enabled or Not'/><author><name>Prasad</name><uri>http://www.blogger.com/profile/13364954722812023067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://images.orkut.com/orkut/albums/ATgAAAAxEHJfMPC0Fnj0hKyQQHERQjw2Flcfq8GB-sLdsl-cIdVKBeS5T_qsVwZwDwX8L32CDoP4uc-W_g5f55hmPianAJtU9VAHWCSZklj47uFgk2Up00Jz5ilr0Q.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5927448610716894513.post-5856172090423015362</id><published>2014-03-21T10:37:00.001-07:00</published><updated>2014-03-21T10:38:46.947-07:00</updated><title type='text'>Extract and Repack Debian Package</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;entry-content&quot; style=&quot;background-color: white; color: #555555; font-family: Bitter, serif; font-size: 13px; line-height: 21.999990463256836px;&quot;&gt;
&lt;div style=&quot;margin-bottom: 1.692307em;&quot;&gt;
I just needed to repack a Debian package to solve this&amp;nbsp;problem below are the steps.&amp;nbsp;&lt;/div&gt;
&lt;pre class=&quot;shell&quot; style=&quot;background-color: #484848; background-image: url(http://ailoo.net/wp-content/themes/mafflog.v8/img/preshellback.png); background-position: 100% 100%; background-repeat: no-repeat no-repeat; border: none; color: white; font-family: Monaco, monospace, Courier, &#39;Courier New&#39;; font-size: 0.8461538461538461em; line-height: 1.692307em; margin-bottom: 1.692307em !important; margin-top: -0.5em !important; overflow: auto !important; padding: 15px 20px; word-wrap: break-word;&quot;&gt;$ mkdir -p extract/DEBIAN
$ dpkg-deb -x package.deb extract/
$ dpkg-deb -e package.deb extract/DEBIAN
[...do something, e.g. edit the control file...]
$ mkdir build
$ dpkg-deb -b extract/ build/
&lt;/pre&gt;
&lt;ul style=&quot;list-style-image: initial; list-style-position: initial; margin: 0px 0px 1.692307em 2.8em; padding: 0px;&quot;&gt;
&lt;li style=&quot;line-height: 2.1em;&quot;&gt;&lt;kbd style=&quot;font-family: monospace, monospace; font-size: 1em;&quot;&gt;-x&lt;/kbd&gt;&amp;nbsp;extracts the package contents&lt;/li&gt;
&lt;li style=&quot;line-height: 2.1em;&quot;&gt;&lt;kbd style=&quot;font-family: monospace, monospace; font-size: 1em;&quot;&gt;-e&lt;/kbd&gt;&amp;nbsp;extracts the control files&lt;/li&gt;
&lt;li style=&quot;line-height: 2.1em;&quot;&gt;&lt;kbd style=&quot;font-family: monospace, monospace; font-size: 1em;&quot;&gt;-b&lt;/kbd&gt;&amp;nbsp;builds the new package&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;margin-bottom: 1.692307em;&quot;&gt;
Done.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://linux-funda.blogspot.com/feeds/5856172090423015362/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-funda.blogspot.com/2014/03/i-just-needed-to-repack-debian-package.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5927448610716894513/posts/default/5856172090423015362'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5927448610716894513/posts/default/5856172090423015362'/><link rel='alternate' type='text/html' href='http://linux-funda.blogspot.com/2014/03/i-just-needed-to-repack-debian-package.html' title='Extract and Repack Debian Package'/><author><name>Prasad</name><uri>http://www.blogger.com/profile/13364954722812023067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://images.orkut.com/orkut/albums/ATgAAAAxEHJfMPC0Fnj0hKyQQHERQjw2Flcfq8GB-sLdsl-cIdVKBeS5T_qsVwZwDwX8L32CDoP4uc-W_g5f55hmPianAJtU9VAHWCSZklj47uFgk2Up00Jz5ilr0Q.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5927448610716894513.post-4294634228941834406</id><published>2013-12-30T23:46:00.002-08:00</published><updated>2013-12-30T23:47:02.975-08:00</updated><title type='text'>Recover Deleted File</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;grep -a -B 25 -A 100 &#39;some string in file&#39; /dev/sda1 &amp;gt; results.txt&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Times, Times New Roman, serif;&quot;&gt;grep searches through a file and prints out all the lines that match some pattern. Here, the pattern is some string that is known to be in the deleted file. The more specific this string can be, the better. The file being searched by grep (/dev/sda1) is the partition of the hard drive the deleted file used to reside in. The &lt;b&gt;-a&lt;/b&gt; flag tells grep to treat the hard drive partition, which is actually a binary file, as text. Since recovering the entire file would be nice instead of just the lines that are already known, context control is used. The flags &lt;b&gt;-B 25 -A 100&lt;/b&gt; tell grep to print out 25 lines before a match and 100 lines after a match. Be conservative with estimates on these numbers to ensure the entire file is included (when in doubt, guess bigger numbers). Excess data is easy to trim out of results, but if you find yourself with a truncated or incomplete file, you need to do this all over again. Finally, the&lt;b&gt; &amp;gt; results.txt&lt;/b&gt; instructs the computer to store the output of grep in a file called results.txt. [&lt;a href=&quot;http://spin.atomicobject.com/2010/08/18/undelete/?utm_source=y-combinator&amp;amp;utm_medium=social-media&amp;amp;utm_campaign=technical&quot;&gt;Ref&lt;/a&gt;]&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://linux-funda.blogspot.com/feeds/4294634228941834406/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-funda.blogspot.com/2013/12/recover-deleted-file.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5927448610716894513/posts/default/4294634228941834406'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5927448610716894513/posts/default/4294634228941834406'/><link rel='alternate' type='text/html' href='http://linux-funda.blogspot.com/2013/12/recover-deleted-file.html' title='Recover Deleted File'/><author><name>Prasad</name><uri>http://www.blogger.com/profile/13364954722812023067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://images.orkut.com/orkut/albums/ATgAAAAxEHJfMPC0Fnj0hKyQQHERQjw2Flcfq8GB-sLdsl-cIdVKBeS5T_qsVwZwDwX8L32CDoP4uc-W_g5f55hmPianAJtU9VAHWCSZklj47uFgk2Up00Jz5ilr0Q.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5927448610716894513.post-8228862349588439242</id><published>2013-10-17T05:38:00.002-07:00</published><updated>2013-10-17T05:38:15.940-07:00</updated><title type='text'>Convert Dmesg timestamp to Human readable format.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
I am using ubuntu 12.04 where util-linux package is update and you have the option of converting dmesg timestamp to human readable format just by passing option &quot;-T&quot;. But for those who are using the dmesg which doesn&#39;t support &quot;-T&quot; option can use below simple program to convert it into human readable format.&lt;br /&gt;
&lt;br /&gt;
Program_file: dmesg_realtime.sh&lt;br /&gt;Parameters: dmesg_timestamp&lt;br /&gt;
&lt;br /&gt;
#cat dmesg_realtime.sh&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
ut=`cut -d&#39; &#39; -f1 &amp;lt; /proc/uptime`&lt;br /&gt;
ts=`date +%s`&lt;br /&gt;
realtime_date=`date -d&quot;70-1-1 + $ts sec - $ut sec + $1 sec&quot; +&quot;%F %T&quot;`&lt;br /&gt;
echo $realtime_date&lt;br /&gt;
&lt;br /&gt;
#./dmesg_realtime.sh&amp;nbsp;8642755.690405&lt;br /&gt;
2013-08-16 08:48:09&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://linux-funda.blogspot.com/feeds/8228862349588439242/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-funda.blogspot.com/2013/10/convert-dmesg-timestamp-to-human.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5927448610716894513/posts/default/8228862349588439242'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5927448610716894513/posts/default/8228862349588439242'/><link rel='alternate' type='text/html' href='http://linux-funda.blogspot.com/2013/10/convert-dmesg-timestamp-to-human.html' title='Convert Dmesg timestamp to Human readable format.'/><author><name>Prasad</name><uri>http://www.blogger.com/profile/13364954722812023067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://images.orkut.com/orkut/albums/ATgAAAAxEHJfMPC0Fnj0hKyQQHERQjw2Flcfq8GB-sLdsl-cIdVKBeS5T_qsVwZwDwX8L32CDoP4uc-W_g5f55hmPianAJtU9VAHWCSZklj47uFgk2Up00Jz5ilr0Q.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5927448610716894513.post-8334119220598912284</id><published>2013-09-24T23:41:00.001-07:00</published><updated>2013-09-24T23:41:50.515-07:00</updated><title type='text'>Top 10 MySQL Mistakes Made By PHP Developers</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
I just came across the &lt;a href=&quot;http://www.sitepoint.com/mysql-mistakes-php-developers/&quot;&gt;Blog&lt;/a&gt; written by &quot;&lt;a href=&quot;http://www.sitepoint.com/author/craig-buckler/&quot; style=&quot;box-sizing: border-box; color: #666699; font-family: &#39;Noto Sans&#39;, &#39;Helvetica Neue&#39;, Helvetica, Helvetica, Arial, sans-serif; font-size: 16px; font-weight: bold; line-height: inherit; text-decoration: none;&quot;&gt;Craig Buckler&lt;/a&gt;&quot; Director of OptimalWorks which will be useful for the PHP Developers.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://linux-funda.blogspot.com/feeds/8334119220598912284/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-funda.blogspot.com/2013/09/top-10-mysql-mistakes-made-by-php.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5927448610716894513/posts/default/8334119220598912284'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5927448610716894513/posts/default/8334119220598912284'/><link rel='alternate' type='text/html' href='http://linux-funda.blogspot.com/2013/09/top-10-mysql-mistakes-made-by-php.html' title='Top 10 MySQL Mistakes Made By PHP Developers'/><author><name>Prasad</name><uri>http://www.blogger.com/profile/13364954722812023067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://images.orkut.com/orkut/albums/ATgAAAAxEHJfMPC0Fnj0hKyQQHERQjw2Flcfq8GB-sLdsl-cIdVKBeS5T_qsVwZwDwX8L32CDoP4uc-W_g5f55hmPianAJtU9VAHWCSZklj47uFgk2Up00Jz5ilr0Q.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5927448610716894513.post-8759336295647335444</id><published>2013-08-12T06:56:00.001-07:00</published><updated>2013-08-12T06:58:16.449-07:00</updated><title type='text'>Postfix as a spam trap server</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;Reference &lt;a href=&quot;http://blog.malowa.de/2011/04/postfix-as-spam-trap-server.html&quot;&gt;here&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;If you want to build a Spam trap with Postfix this can be done very very easy. You don&#39;t even have to configure Postfix to act as a Spam trap.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;Postfix ships with a neat tool called&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13px; line-height: 18px;&quot;&gt;smtp-sink&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;&amp;nbsp;which does the trick.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13px; line-height: 18px;&quot;&gt;smtp-sink&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;&amp;nbsp;is mainly intended to act as a testing tool for SMTP clients which need a Server to play with. So you can configure it to log the whole conversation or even dump each received mail to a file. The latter is needed for a spamtrap.&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=5927448610716894513&quot; name=&quot;more&quot; style=&quot;background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;&lt;/a&gt;&lt;br style=&quot;background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot; /&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;There is no configuration file to configure&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13px; line-height: 18px;&quot;&gt;smtp-sink&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;. Everything is done via command-line options.&lt;/span&gt;&lt;br /&gt;
&lt;blockquote style=&quot;background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;
smtp-sink -c -d &quot;%Y%m%d%H/%M.&quot; -f . -u postfix -R /tmp/ -B &quot;550 5.3.0 The recipient does not like your mail. Don&#39;t try again.&quot; -h spamtrap.example.com 25 1024&lt;/blockquote&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;Let&#39;s have a closer look to each parameter.&lt;/span&gt;&lt;br /&gt;
&lt;ul style=&quot;background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; margin: 0.5em 0px; padding: 0px 2.5em;&quot;&gt;
&lt;li style=&quot;margin: 0px 0px 0.25em; padding: 0px;&quot;&gt;-u postfix&lt;br /&gt;Runs the program under the user &quot;postfix&quot;&lt;/li&gt;
&lt;li style=&quot;margin: 0px 0px 0.25em; padding: 0px;&quot;&gt;-R /tmp/&lt;br /&gt;Sets the output directory to /tmp/. In this directory the mails will be stored. If you have a high spam volume (hundreds of Spam per minute) it is recommended to write the mails to a ramdisk&lt;/li&gt;
&lt;li style=&quot;margin: 0px 0px 0.25em; padding: 0px;&quot;&gt;-d &quot;%Y%m%d%H/%M.&quot;&lt;br /&gt;Writes the mail to a directory of the format &quot;YearMonthDayHour&quot; and in this directory the files are name &quot;Month.RandomID&quot;. Note that the dates are in UTC&lt;/li&gt;
&lt;li style=&quot;margin: 0px 0px 0.25em; padding: 0px;&quot;&gt;-c&lt;br /&gt;Write statistics about connection counts and message counts to stdout while running&lt;/li&gt;
&lt;li style=&quot;margin: 0px 0px 0.25em; padding: 0px;&quot;&gt;-f .&lt;br /&gt;Reject the mail after END-OF-DATA. But the mail will be saved. Cool, isn&#39;t it?!&lt;/li&gt;
&lt;li style=&quot;margin: 0px 0px 0.25em; padding: 0px;&quot;&gt;-B &quot;550 5.3.0 The recipient does not like your mail. Don&#39;t try again&quot;&lt;br /&gt;This is the rejection message after END-OF-DATA.&lt;/li&gt;
&lt;li style=&quot;margin: 0px 0px 0.25em; padding: 0px;&quot;&gt;-h spamtrap.example.com&lt;br /&gt;Announce the hostname spamtrap.example.com&lt;/li&gt;
&lt;li style=&quot;margin: 0px 0px 0.25em; padding: 0px;&quot;&gt;25&lt;br /&gt;The port to listen on. Can be prepended with an IP or host if you want to bind on a special interface.&lt;/li&gt;
&lt;li style=&quot;margin: 0px 0px 0.25em; padding: 0px;&quot;&gt;1024&lt;br /&gt;The backlog count of connections that can wait in the TCP/IP stack before they get a free slot for sending mail.&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;You can find more information in the man page of&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13px; line-height: 18px;&quot;&gt;smtp-sink&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;, but these are the important ones to run a catch-all spamtrap.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;In this configuration the program accepts any mail with any size from any sender to any recipient with IPv4 and IPv6. The only restrictions are that there are only 256 simultaneous connections possible with 1024 queued connections and the program is flagged experimental.&lt;/span&gt;&lt;br /&gt;
&lt;b style=&quot;background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;So do not use&amp;nbsp;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;smtp-sink&lt;/span&gt;&amp;nbsp;in a production environment.&lt;/b&gt;&lt;br /&gt;
&lt;br style=&quot;background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot; /&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;The next step of a Spamtrap is to read the saved files, parse and interpret them and then do whatever is needed. For example block further connections from that IP via a firewall, feed it to a blacklist, scan for viruses or create checksums from these mails.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;The -B option is only valid in newer versions of Postfix. In 2.7.1 it is missing. In 2.8.2 it is present. Somewhere in-between it was introduced.&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://linux-funda.blogspot.com/feeds/8759336295647335444/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-funda.blogspot.com/2013/08/postfix-as-spam-trap-server.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5927448610716894513/posts/default/8759336295647335444'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5927448610716894513/posts/default/8759336295647335444'/><link rel='alternate' type='text/html' href='http://linux-funda.blogspot.com/2013/08/postfix-as-spam-trap-server.html' title='Postfix as a spam trap server'/><author><name>Prasad</name><uri>http://www.blogger.com/profile/13364954722812023067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://images.orkut.com/orkut/albums/ATgAAAAxEHJfMPC0Fnj0hKyQQHERQjw2Flcfq8GB-sLdsl-cIdVKBeS5T_qsVwZwDwX8L32CDoP4uc-W_g5f55hmPianAJtU9VAHWCSZklj47uFgk2Up00Jz5ilr0Q.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5927448610716894513.post-7464366216311170660</id><published>2013-07-25T06:34:00.001-07:00</published><updated>2013-07-25T06:34:05.776-07:00</updated><title type='text'>MySQL Scaling technique.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;Global Configuraiton Level:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;thread_cache_size&lt;br /&gt;Change if you do a lot of new connections.&lt;/li&gt;
&lt;li&gt;table_cache&lt;br /&gt;Change if you have many tables or simultaneous connections&lt;/li&gt;
&lt;li&gt;delay_key_write&lt;br /&gt;Set if you need to buffer all key writes&lt;/li&gt;
&lt;li&gt;max_heap_table_size&lt;br /&gt;Used with GROUP BY&lt;/li&gt;
&lt;li&gt;sort_buffer&lt;br /&gt;Used with ORDER BY and GROUP BY&lt;/li&gt;
&lt;li&gt;query_cache_type&lt;br /&gt;Set this ON if you are repeating the sql queries default OFF&lt;/li&gt;
&lt;li&gt;query_cache_size&lt;br /&gt;Set this to any perticuler value &amp;gt;= query_cache_limit. To disabled query_cache_size set the value to &quot;0&quot;.&lt;/li&gt;
&lt;/ol&gt;
&lt;b&gt;MyISAM&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;key_buffer_size&lt;br /&gt;Change if you have enough RAM to store available MyISAM table Index&lt;/li&gt;
&lt;li&gt;myisam_sort_buffer_size&lt;br /&gt;Useful when Repairing tables.&lt;/li&gt;
&lt;li&gt;myisam_use_mmap&lt;br /&gt;Use memory mapping for reading and writing MyISAM tables.&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
&lt;b&gt;InnoDB&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;innodb_buffer_pool_size&lt;br /&gt;Change if you have enough RAM to store available InnoDB table Index.&lt;/li&gt;
&lt;li&gt;innodb_support_xa&lt;br /&gt;Turn off if you don&#39;t need it for safe binary logging or replication&lt;/li&gt;
&lt;li&gt;innodb_doublewrite&lt;br /&gt;If enable then 5-10% performance loss due to use of doublewrite&lt;/li&gt;
&lt;li&gt;innodb_lock_wait_timeout&lt;br /&gt;To remove the deadlock process after certain timeout value.&lt;/li&gt;
&lt;li&gt;innodb_thread_concurrency&lt;br /&gt;A recommended value is 2 times the number of CPUs plus the number of disks.&lt;/li&gt;
&lt;li&gt;innodb_flush_method&lt;br /&gt;On some systems where InnoDB data and log files are located on a SAN, it has been found that setting innodb_flush_method to O_DIRECT can degrade performance of simple SELECT statements by a factor of three.&lt;/li&gt;
&lt;li&gt;innodb_flush_log_at_trx_commit&lt;br /&gt;For the greatest possible durability and consistency in a replication setup using InnoDB with transactions, you should use innodb_flush_log_at_trx_commit=1, sync_binlog=1&lt;/li&gt;
&lt;li&gt;innodb_file_per_table&lt;br /&gt;This will create the file per table same as MyISAM&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
&lt;b&gt;System Level:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
1. Disable DNS Hostname Lookup&lt;br /&gt;
3. RAID 10 is must for high I/O performance.&lt;br /&gt;
4. ResierFS is recomended filesystem by most of the blog posts but xfs is doing good for us over RAID 10.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Architectural Level:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
1. Use VARCHAR datatype instead of CHAR.&lt;br /&gt;
2. AUTO_INCREMENT should be BIGINT if there are Million Row insert/delete.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://linux-funda.blogspot.com/feeds/7464366216311170660/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-funda.blogspot.com/2013/07/mysql-scaling-technique.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5927448610716894513/posts/default/7464366216311170660'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5927448610716894513/posts/default/7464366216311170660'/><link rel='alternate' type='text/html' href='http://linux-funda.blogspot.com/2013/07/mysql-scaling-technique.html' title='MySQL Scaling technique.'/><author><name>Prasad</name><uri>http://www.blogger.com/profile/13364954722812023067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://images.orkut.com/orkut/albums/ATgAAAAxEHJfMPC0Fnj0hKyQQHERQjw2Flcfq8GB-sLdsl-cIdVKBeS5T_qsVwZwDwX8L32CDoP4uc-W_g5f55hmPianAJtU9VAHWCSZklj47uFgk2Up00Jz5ilr0Q.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5927448610716894513.post-5259040627595839772</id><published>2012-01-19T02:23:00.000-08:00</published><updated>2012-01-19T02:23:52.025-08:00</updated><title type='text'>Script to execute given command on multiple remote hosts</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
Script is use to execute any command on multiple remote hosts.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#runcmd --help&lt;br /&gt;
Usage: runcmd -u &quot;username&quot; -d &quot;domain&quot; -s &quot;servers1,server2&quot; -c &quot;command&quot;&lt;br /&gt;
&lt;br /&gt;
Options:&lt;br /&gt;
&amp;nbsp; -h, --help &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;show this help message and exit&lt;br /&gt;
&amp;nbsp; -s SERVER, --server=SERVER&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; servers to update&lt;br /&gt;
&amp;nbsp; -u USER, --user=USER &amp;nbsp;user name&lt;br /&gt;
&amp;nbsp; -d DOMAIN, --domain=DOMAIN&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; domain name&lt;br /&gt;
&amp;nbsp; -c COMMAND, --command=COMMAND&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; remote command to execute&lt;br /&gt;
&amp;nbsp; -v, --verbose &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; verbose&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Copy paste following in &quot;runcmd&quot; and make sure that file is in executable mode.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;#!/usr/bin/python&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;#Auther: Prasad Wani&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;#This script will execute the given command on any remote server&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;#&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;import commands&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;from optparse import OptionParser&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;import pexpect&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;import os&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;import getpass&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;import paramiko&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;import ConfigParser&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;import sys&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;usage = &#39;usage: %prog&amp;nbsp;-u &quot;username&quot; -d &quot;domain&quot; -s &quot;servers1,server2&quot; -c &quot;command&quot;&#39;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;parser = OptionParser(usage)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;parser.add_option(&#39;-s&#39;, &#39;--server&#39;, dest=&#39;server&#39;, help=&#39;servers to update&#39;)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;parser.add_option(&#39;-u&#39;, &#39;--user&#39;, dest=&#39;user&#39;, default=&#39;prasad&#39;, help=&#39;user name&#39;)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;parser.add_option(&#39;-d&#39;, &#39;--domain&#39;, dest=&#39;domain&#39;, default=&#39;sjc2&#39;, help=&#39;domain name&#39;)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;parser.add_option(&#39;-c&#39;, &#39;--command&#39;, dest=&#39;command&#39;, help=&#39;remote command to execute&#39;)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;parser.add_option(&#39;-v&#39;, &#39;--verbose&#39;, dest=&#39;verbose&#39;, action=&#39;store_true&#39;, help=&#39;verbose&#39;)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;options, args = parser.parse_args()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;if not len(sys.argv) &amp;gt; 1:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; parser.error(&quot;Some required options are missing, please run &#39;runcmd --help&#39;&quot;)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;hosts = options.server&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;hosts = hosts.split(&#39;,&#39;)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;username = options.user&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;password = getpass.getpass(prompt=&quot;\033[34m&quot;&#39;Please enter the password for user&#39;+&#39; &#39;+username+&#39;:&#39;&quot;\033[0m&quot;)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;def verify_password (host, username):&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;global password&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;try:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; ssh = paramiko.SSHClient()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; ssh.load_system_host_keys()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; ssh.connect(host, 22, username, password)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; ssh.close()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;except paramiko.AuthenticationException:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; print &quot;\033[31m&quot;&quot;Error: Authentication Failed&quot;&quot;\033[34m&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; password &amp;nbsp; &amp;nbsp;= &amp;nbsp; getpass.getpass(prompt=&quot;\033[34m&quot;&#39;Please enter the password for user&#39;+&#39; &#39;+username+&#39;:&#39;&quot;\033[0m&quot;)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; verify_password(host, username)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;for host in hosts:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; host = host.strip()+&quot;.&quot;+options.domain+&quot;.com&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt; &amp;nbsp; &amp;nbsp;print host&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt; &amp;nbsp; &amp;nbsp;ssh = paramiko.SSHClient()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ssh.connect(host, 22, username, password)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt; &amp;nbsp; &amp;nbsp;print options.command&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; stdin, stdout, stderr = ssh.exec_command(options.command)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; print &quot;------------&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; print stdout.read()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ssh.close()&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-funda.blogspot.com/feeds/5259040627595839772/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-funda.blogspot.com/2012/01/script-to-execute-given-command-on.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5927448610716894513/posts/default/5259040627595839772'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5927448610716894513/posts/default/5259040627595839772'/><link rel='alternate' type='text/html' href='http://linux-funda.blogspot.com/2012/01/script-to-execute-given-command-on.html' title='Script to execute given command on multiple remote hosts'/><author><name>Prasad</name><uri>http://www.blogger.com/profile/13364954722812023067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://images.orkut.com/orkut/albums/ATgAAAAxEHJfMPC0Fnj0hKyQQHERQjw2Flcfq8GB-sLdsl-cIdVKBeS5T_qsVwZwDwX8L32CDoP4uc-W_g5f55hmPianAJtU9VAHWCSZklj47uFgk2Up00Jz5ilr0Q.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5927448610716894513.post-6657683316021606110</id><published>2011-07-04T03:03:00.000-07:00</published><updated>2011-07-04T03:03:05.669-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="nagios"/><category scheme="http://www.blogger.com/atom/ns#" term="opsview"/><category scheme="http://www.blogger.com/atom/ns#" term="twitter"/><title type='text'>Opsview (and Nagios) with Twitter</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;I have written a &lt;a href=&quot;http://shib4u.blogspot.com/2011/07/opsview-and-twitter-notification.html&quot;&gt;post&lt;/a&gt; about integrating Twitter posts in Opsview &lt;a href=&quot;http://shib4u.blogspot.com/2011/07/opsview-and-twitter-notification.html&quot;&gt;here&lt;/a&gt;. With a few modifications, this can be adapted in Nagios also. The Opsview (or Nagios) notifications will be posted on a Twitter account. Interested (or uninterested) users (read &quot;system admins&quot;) can subscribe to this account and keep themselves posted.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjoSCp6TZQ2tFeD00_4SUPiW9ucULka5VL7QGCmo6w9UlyeX9vj8isAQfNNyWaunoeXtlDmS-7V4LWHh_CxYi2HejJ6Ccw1BIGxwWwGujJUTSqtYwDpTphqXoIF5UONQT2OtlHhns0pBpk5/s1600/blog1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;226&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjoSCp6TZQ2tFeD00_4SUPiW9ucULka5VL7QGCmo6w9UlyeX9vj8isAQfNNyWaunoeXtlDmS-7V4LWHh_CxYi2HejJ6Ccw1BIGxwWwGujJUTSqtYwDpTphqXoIF5UONQT2OtlHhns0pBpk5/s320/blog1.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
With &lt;a href=&quot;http://itunes.apple.com/us/app/twitter/id333903271?mt=8&quot;&gt;iPhone&lt;/a&gt; and &lt;a href=&quot;https://market.android.com/details?id=com.twitter.android&quot;&gt;Android&lt;/a&gt; powered phones, keeping a check of your twitter account is super easy !&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-funda.blogspot.com/feeds/6657683316021606110/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-funda.blogspot.com/2011/07/opsview-and-nagios-with-twitter.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5927448610716894513/posts/default/6657683316021606110'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5927448610716894513/posts/default/6657683316021606110'/><link rel='alternate' type='text/html' href='http://linux-funda.blogspot.com/2011/07/opsview-and-nagios-with-twitter.html' title='Opsview (and Nagios) with Twitter'/><author><name>Shib</name><uri>http://www.blogger.com/profile/17299831406951328245</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjoSCp6TZQ2tFeD00_4SUPiW9ucULka5VL7QGCmo6w9UlyeX9vj8isAQfNNyWaunoeXtlDmS-7V4LWHh_CxYi2HejJ6Ccw1BIGxwWwGujJUTSqtYwDpTphqXoIF5UONQT2OtlHhns0pBpk5/s72-c/blog1.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5927448610716894513.post-6051501436555253523</id><published>2011-06-22T22:42:00.000-07:00</published><updated>2011-06-22T22:42:21.737-07:00</updated><title type='text'>Selecting BINLOG_FORMAT in MySQL</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; font-family: helvetica, arial, sans-serif; font-size: 14px; line-height: 25px;&quot;&gt;There are several reasons why a client might want to set binary logging on a per-session basis:&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;background-color: transparent; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;ul style=&quot;background-color: transparent; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; list-style-position: initial; list-style-type: initial; margin-bottom: 8px; margin-left: 16px; margin-right: 4px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;li style=&quot;background-color: transparent; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: verdana, arial, helvetica, sans-serif; font-size: 14px; line-height: 14px; list-style-position: outside; list-style-type: disc; margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: middle;&quot;&gt;&lt;div style=&quot;background-color: transparent; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: block; font-family: helvetica, arial, sans-serif; font-size: 14px; line-height: 25px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; max-width: 720px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify; vertical-align: baseline;&quot;&gt;A session that makes many small changes to the database might want to use row-based logging.&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: verdana, arial, helvetica, sans-serif; font-size: 14px; line-height: 14px; list-style-position: outside; list-style-type: disc; margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: middle;&quot;&gt;&lt;div style=&quot;background-color: transparent; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: block; font-family: helvetica, arial, sans-serif; font-size: 14px; line-height: 25px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; max-width: 720px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify; vertical-align: baseline;&quot;&gt;A session that performs updates that match many rows in the&amp;nbsp;&lt;code style=&quot;background-color: white; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: &#39;courier new&#39;, courier, fixed, monospace; font-size: 13px; font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;WHERE&lt;/code&gt;&amp;nbsp;clause might want to use statement-based logging because it will be more efficient to log a few statements than many rows.&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; list-style-position: outside; list-style-type: disc; margin-bottom: 5px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify; vertical-align: middle;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: helvetica, arial, sans-serif; font-size: 14px; line-height: 25px;&quot;&gt;Some statements require a lot of execution time on the master, but result in just a few rows being modified. It might therefore be beneficial to replicate them using row-based logging.&lt;/span&gt;&lt;div style=&quot;background-color: transparent; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: block; font-family: helvetica, arial, sans-serif; font-size: 14px; line-height: 25px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; max-width: 720px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse;&quot;&gt;&lt;div style=&quot;background-color: transparent; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: block; font-family: helvetica, arial, sans-serif; font-size: 14px; line-height: 25px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; max-width: 720px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: arial, sans-serif; font-size: 13px; line-height: normal;&quot;&gt;&lt;span style=&quot;font-family: helvetica, arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 25px;&quot;&gt;So it seems that ROW base logging will help on the queries which has more update having where clause and&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: helvetica, arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 25px;&quot;&gt;taking time on master. Because in &quot;STATEMENT&quot; log format statement is exactly copied as it is and stored in log and same statement is replicated on slave. but if &quot;ROW&quot; base logging enabled then only updated ROWS are stored in the logs and only those ROW&#39;s statements only executed on SLAVE.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: transparent; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: block; font-family: helvetica, arial, sans-serif; font-size: 14px; line-height: 25px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; max-width: 720px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: justify; vertical-align: baseline;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: arial, sans-serif; font-size: 13px; line-height: normal;&quot;&gt;&lt;span style=&quot;font-family: helvetica, arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 25px;&quot;&gt;[&lt;a href=&quot;http://www.blogger.com/[Reff.]%20http://dev.mysql.com/doc/refman/5.1/en/binary-log-setting.html&quot;&gt;Ref&lt;/a&gt;]&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-funda.blogspot.com/feeds/6051501436555253523/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-funda.blogspot.com/2011/06/selecting-binlogformat-in-mysql.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5927448610716894513/posts/default/6051501436555253523'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5927448610716894513/posts/default/6051501436555253523'/><link rel='alternate' type='text/html' href='http://linux-funda.blogspot.com/2011/06/selecting-binlogformat-in-mysql.html' title='Selecting BINLOG_FORMAT in MySQL'/><author><name>Prasad</name><uri>http://www.blogger.com/profile/13364954722812023067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://images.orkut.com/orkut/albums/ATgAAAAxEHJfMPC0Fnj0hKyQQHERQjw2Flcfq8GB-sLdsl-cIdVKBeS5T_qsVwZwDwX8L32CDoP4uc-W_g5f55hmPianAJtU9VAHWCSZklj47uFgk2Up00Jz5ilr0Q.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5927448610716894513.post-652870214692342892</id><published>2011-03-12T07:33:00.000-08:00</published><updated>2011-03-12T07:33:57.631-08:00</updated><title type='text'>Fixing a Corrupt MySQL Relay Log</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, &#39;Lucida Grande&#39;, Verdana, Helvetica, Arial, sans-serif; font-size: 13px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;line-height: 1.4; text-align: justify;&quot;&gt;When there are network problems between the server, there was some issue where the master didn’t properly detect and notify the slave of the failure. This resulted in parts of queries missing, duplicated, or replaced by random bits in the relay log on the slave. When the slave tries to execute the corrupt query, it will likely generate an error that begins with:&lt;/div&gt;&lt;pre style=&quot;background-attachment: initial; background-clip: initial; background-color: #f5f8e8; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(208, 236, 152); border-bottom-style: solid; border-bottom-width: 2px; border-left-color: rgb(208, 236, 152); border-left-style: solid; border-left-width: 2px; border-right-color: rgb(208, 236, 152); border-right-style: solid; border-right-width: 2px; border-top-color: rgb(208, 236, 152); border-top-style: solid; border-top-width: 2px; color: #444e1f; display: block; font-size: 1em; padding-bottom: 10px; padding-left: 10px; padding-right: 10px; padding-top: 10px;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Error You have an error in your SQL syntax; check the manual that corresponds to&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;  your MySQL server version for the right syntax to use near . .&lt;/div&gt;&lt;/pre&gt;&lt;div style=&quot;line-height: 1.4; text-align: justify;&quot;&gt;A work-around which forces the slave to re-request the binary log from the master. Run ‘SHOW SLAVE STATUS’ and make note of the Master_Log_File and Exec_Master_Log_Pos columns. Then run ‘STOP SLAVE’ to suspend replication, and run this SQL:&lt;/div&gt;&lt;pre style=&quot;background-attachment: initial; background-clip: initial; background-color: #f5f8e8; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(208, 236, 152); border-bottom-style: solid; border-bottom-width: 2px; border-left-color: rgb(208, 236, 152); border-left-style: solid; border-left-width: 2px; border-right-color: rgb(208, 236, 152); border-right-style: solid; border-right-width: 2px; border-top-color: rgb(208, 236, 152); border-top-style: solid; border-top-width: 2px; color: #444e1f; display: block; font-size: 1em; padding-bottom: 10px; padding-left: 10px; padding-right: 10px; padding-top: 10px;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;CHANGE MASTER TO master_log_file=&#39;&lt;value from=&quot;&quot; relay_master_log_file=&quot;&quot;&gt;&#39;,&lt;/value&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;  master_log_pos=&lt;value exec_master_log_pos=&quot;&quot; from=&quot;&quot;&gt;;&lt;/value&gt;&lt;/div&gt;&lt;/pre&gt;&lt;div style=&quot;line-height: 1.4; text-align: justify;&quot;&gt;After that, simply run ‘START SLAVE’ to have replication pick up from there again. That evidently has the slave re-request the rest of the master’s binary log, which it should (hopefully) get without becoming corrupt, and replication will continue as normal.&lt;/div&gt;&lt;div style=&quot;line-height: 1.4; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;line-height: 1.4; text-align: justify;&quot;&gt;[&lt;a href=&quot;http://www.brandonchecketts.com/archives/fixing-a-corrupt-mysql-relay-log&quot;&gt;Ref&lt;/a&gt;]&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-funda.blogspot.com/feeds/652870214692342892/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-funda.blogspot.com/2011/03/fixing-corrupt-mysql-relay-log.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5927448610716894513/posts/default/652870214692342892'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5927448610716894513/posts/default/652870214692342892'/><link rel='alternate' type='text/html' href='http://linux-funda.blogspot.com/2011/03/fixing-corrupt-mysql-relay-log.html' title='Fixing a Corrupt MySQL Relay Log'/><author><name>Prasad</name><uri>http://www.blogger.com/profile/13364954722812023067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://images.orkut.com/orkut/albums/ATgAAAAxEHJfMPC0Fnj0hKyQQHERQjw2Flcfq8GB-sLdsl-cIdVKBeS5T_qsVwZwDwX8L32CDoP4uc-W_g5f55hmPianAJtU9VAHWCSZklj47uFgk2Up00Jz5ilr0Q.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5927448610716894513.post-6961880334330183597</id><published>2010-09-23T04:18:00.000-07:00</published><updated>2010-09-23T04:18:05.342-07:00</updated><title type='text'>How to listdown directories</title><content type='html'>ls -d */ &lt;br /&gt;
&lt;br /&gt;
the -d says “do not descend into sub-directories, it is the same as saying -d1. &lt;br /&gt;
The */ says list only items ending in / (which are directories).&lt;br /&gt;
If you want to see hidden directories, you could do a ls -d .*/</content><link rel='replies' type='application/atom+xml' href='http://linux-funda.blogspot.com/feeds/6961880334330183597/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-funda.blogspot.com/2010/09/how-to-listdown-directories.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5927448610716894513/posts/default/6961880334330183597'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5927448610716894513/posts/default/6961880334330183597'/><link rel='alternate' type='text/html' href='http://linux-funda.blogspot.com/2010/09/how-to-listdown-directories.html' title='How to listdown directories'/><author><name>Prasad</name><uri>http://www.blogger.com/profile/13364954722812023067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://images.orkut.com/orkut/albums/ATgAAAAxEHJfMPC0Fnj0hKyQQHERQjw2Flcfq8GB-sLdsl-cIdVKBeS5T_qsVwZwDwX8L32CDoP4uc-W_g5f55hmPianAJtU9VAHWCSZklj47uFgk2Up00Jz5ilr0Q.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5927448610716894513.post-2005612590395478683</id><published>2010-07-16T11:06:00.000-07:00</published><updated>2010-07-16T11:06:59.580-07:00</updated><title type='text'>Creating ISO image of Installed OS</title><content type='html'>When you want to create the ISO image of Installed OS use the following command.&lt;br /&gt;
&lt;br /&gt;
mkisofs -force-rr -m /proc -m /sys -o file.iso / [proc and sys are excluded intentionally]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To test this use the following&lt;br /&gt;
&lt;br /&gt;
mount -o loop file.iso /mnt</content><link rel='replies' type='application/atom+xml' href='http://linux-funda.blogspot.com/feeds/2005612590395478683/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-funda.blogspot.com/2010/07/creating-iso-image-of-installed-os.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5927448610716894513/posts/default/2005612590395478683'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5927448610716894513/posts/default/2005612590395478683'/><link rel='alternate' type='text/html' href='http://linux-funda.blogspot.com/2010/07/creating-iso-image-of-installed-os.html' title='Creating ISO image of Installed OS'/><author><name>Prasad</name><uri>http://www.blogger.com/profile/13364954722812023067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://images.orkut.com/orkut/albums/ATgAAAAxEHJfMPC0Fnj0hKyQQHERQjw2Flcfq8GB-sLdsl-cIdVKBeS5T_qsVwZwDwX8L32CDoP4uc-W_g5f55hmPianAJtU9VAHWCSZklj47uFgk2Up00Jz5ilr0Q.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5927448610716894513.post-9111692044119231553</id><published>2010-07-09T02:42:00.000-07:00</published><updated>2010-07-09T02:43:44.729-07:00</updated><title type='text'>log-slave-updates</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #555555; font-family: helvetica, arial, sans-serif; font-size: 14px; line-height: 25px;&quot;&gt;Normally, a slave does not log to its own binary log any updates that are received from a master server. This option tells the slave to log the updates performed by its SQL thread to its own binary log. For this option to have any effect, the slave must also be started with the&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #555555; font-family: helvetica, arial, sans-serif; font-size: 14px; line-height: 25px;&quot;&gt;&lt;a href=&quot;http://www.blogger.com/replication-options-binary-log.html#option_mysqld_log-bin&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #00759f; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: underline; vertical-align: baseline;&quot;&gt;&lt;code class=&quot;option&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #0e4075; font-family: courier, &#39;courier new&#39;, fixed, monospace; font-size: 13px; font-weight: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: underline; vertical-align: baseline;&quot;&gt;--log-bin&lt;/code&gt;&lt;/a&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #555555; font-family: helvetica, arial, sans-serif; font-size: 14px; line-height: 25px;&quot;&gt;&amp;nbsp;option to enable binary logging.&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #555555; font-family: helvetica, arial, sans-serif; font-size: 14px; line-height: 25px;&quot;&gt;&lt;a href=&quot;http://www.blogger.com/replication-options-slave.html#option_mysqld_log-slave-updates&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #00759f; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: underline; vertical-align: baseline;&quot;&gt;&lt;code class=&quot;option&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #0e4075; font-family: courier, &#39;courier new&#39;, fixed, monospace; font-size: 13px; font-weight: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: underline; vertical-align: baseline;&quot;&gt;--log-slave-updates&lt;/code&gt;&lt;/a&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #555555; font-family: helvetica, arial, sans-serif; font-size: 14px; line-height: 25px;&quot;&gt;&amp;nbsp;is used when you want to chain replication servers.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: helvetica, arial, sans-serif; font-size: 14px; line-height: 25px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #555555;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;For example, you might want to set up replication servers using this arrangement:&lt;/span&gt;&lt;br /&gt;
&lt;pre class=&quot;programlisting&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #eeeeee; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; display: block; font-family: courier, &#39;courier new&#39;, fixed, monospace; font-size: 13px; line-height: 20px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; max-width: 720px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 2px; padding-left: 2px; padding-right: 2px; padding-top: 2px; vertical-align: baseline;&quot;&gt;A -&amp;gt; B -&amp;gt; C
&lt;/pre&gt;&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; display: block; font-family: helvetica, arial, sans-serif; font-size: 14px; line-height: 25px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; max-width: 720px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;Here,&amp;nbsp;&lt;code class=&quot;literal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #026789; font-family: courier, &#39;courier new&#39;, fixed, monospace; font-size: 13px; font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;A&lt;/code&gt;&amp;nbsp;serves as the master for the slave&amp;nbsp;&lt;code class=&quot;literal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #026789; font-family: courier, &#39;courier new&#39;, fixed, monospace; font-size: 13px; font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;B&lt;/code&gt;, and&amp;nbsp;&lt;code class=&quot;literal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #026789; font-family: courier, &#39;courier new&#39;, fixed, monospace; font-size: 13px; font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;B&lt;/code&gt;&amp;nbsp;serves as the master for the slave&amp;nbsp;&lt;code class=&quot;literal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #026789; font-family: courier, &#39;courier new&#39;, fixed, monospace; font-size: 13px; font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;C&lt;/code&gt;. For this to work,&amp;nbsp;&lt;code class=&quot;literal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #026789; font-family: courier, &#39;courier new&#39;, fixed, monospace; font-size: 13px; font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;B&lt;/code&gt;&amp;nbsp;must be both a master&amp;nbsp;&lt;span class=&quot;emphasis&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;em style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #003333; font-size: 14px; font-style: italic; font-weight: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;and&lt;/em&gt;&lt;/span&gt;&amp;nbsp;a slave. You must start both&amp;nbsp;&lt;code class=&quot;literal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #026789; font-family: courier, &#39;courier new&#39;, fixed, monospace; font-size: 13px; font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;A&lt;/code&gt;&amp;nbsp;and&amp;nbsp;&lt;code class=&quot;literal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #026789; font-family: courier, &#39;courier new&#39;, fixed, monospace; font-size: 13px; font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;B&lt;/code&gt;&amp;nbsp;with&amp;nbsp;&lt;a href=&quot;http://www.blogger.com/replication-options-binary-log.html#option_mysqld_log-bin&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #00759f; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: underline; vertical-align: baseline;&quot;&gt;&lt;code class=&quot;option&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #0e4075; font-family: courier, &#39;courier new&#39;, fixed, monospace; font-size: 13px; font-weight: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: underline; vertical-align: baseline;&quot;&gt;--log-bin&lt;/code&gt;&lt;/a&gt;&amp;nbsp;to enable binary logging, and&amp;nbsp;&lt;code class=&quot;literal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #026789; font-family: courier, &#39;courier new&#39;, fixed, monospace; font-size: 13px; font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;B&lt;/code&gt;&amp;nbsp;with the&amp;nbsp;&lt;a href=&quot;http://www.blogger.com/replication-options-slave.html#option_mysqld_log-slave-updates&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #00759f; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: underline; vertical-align: baseline;&quot;&gt;&lt;code class=&quot;option&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #0e4075; font-family: courier, &#39;courier new&#39;, fixed, monospace; font-size: 13px; font-weight: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: underline; vertical-align: baseline;&quot;&gt;--log-slave-updates&lt;/code&gt;&lt;/a&gt;&amp;nbsp;option so that updates received from&amp;nbsp;&lt;code class=&quot;literal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #026789; font-family: courier, &#39;courier new&#39;, fixed, monospace; font-size: 13px; font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;A&lt;/code&gt;&amp;nbsp;are logged by&amp;nbsp;&lt;code class=&quot;literal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #026789; font-family: courier, &#39;courier new&#39;, fixed, monospace; font-size: 13px; font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;B&lt;/code&gt;&amp;nbsp;to its binary log.&lt;br /&gt;
&lt;br /&gt;
[ref: &lt;a href=&quot;http://dev.mysql.com/doc/refman/5.1/en/replication-options-slave.html&quot;&gt;http://dev.mysql.com/doc/refman/5.1/en/replication-options-slave.html&lt;/a&gt;]&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-funda.blogspot.com/feeds/9111692044119231553/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-funda.blogspot.com/2010/07/log-slave-updates.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5927448610716894513/posts/default/9111692044119231553'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5927448610716894513/posts/default/9111692044119231553'/><link rel='alternate' type='text/html' href='http://linux-funda.blogspot.com/2010/07/log-slave-updates.html' title='log-slave-updates'/><author><name>Prasad</name><uri>http://www.blogger.com/profile/13364954722812023067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://images.orkut.com/orkut/albums/ATgAAAAxEHJfMPC0Fnj0hKyQQHERQjw2Flcfq8GB-sLdsl-cIdVKBeS5T_qsVwZwDwX8L32CDoP4uc-W_g5f55hmPianAJtU9VAHWCSZklj47uFgk2Up00Jz5ilr0Q.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5927448610716894513.post-2281569588339600128</id><published>2010-06-07T06:54:00.001-07:00</published><updated>2010-06-07T07:16:34.485-07:00</updated><title type='text'>How to get an absolute value</title><content type='html'>Some times when we calculating difference we don&#39;t want to show the negative value. What we are interested in is only the difference. so here is the command.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
prasad@mac:~# absolute_value=-123&lt;br /&gt;
prasad@mac:~# echo ${absolute_value#-}&lt;br /&gt;
123&lt;br /&gt;
&lt;br /&gt;
You can use this in any shell script.</content><link rel='replies' type='application/atom+xml' href='http://linux-funda.blogspot.com/feeds/2281569588339600128/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-funda.blogspot.com/2010/06/how-to-get-absolute-value.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5927448610716894513/posts/default/2281569588339600128'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5927448610716894513/posts/default/2281569588339600128'/><link rel='alternate' type='text/html' href='http://linux-funda.blogspot.com/2010/06/how-to-get-absolute-value.html' title='How to get an absolute value'/><author><name>Prasad</name><uri>http://www.blogger.com/profile/13364954722812023067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://images.orkut.com/orkut/albums/ATgAAAAxEHJfMPC0Fnj0hKyQQHERQjw2Flcfq8GB-sLdsl-cIdVKBeS5T_qsVwZwDwX8L32CDoP4uc-W_g5f55hmPianAJtU9VAHWCSZklj47uFgk2Up00Jz5ilr0Q.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5927448610716894513.post-4368917233620550556</id><published>2010-05-11T01:04:00.001-07:00</published><updated>2010-07-16T06:26:08.710-07:00</updated><title type='text'>On the Fly zip unzip mysql Backup</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; border-collapse: collapse; color: #333333; font-family: &#39;Lucida Grande&#39;, verdana, arial, helvetica, sans-serif; font-size: 12px;&quot;&gt;mysqldump -u root -ppassword&lt;password&gt;&amp;nbsp;RECEIPTS BlockedNumbersTable | bzip2 -9 | ssh host0119 &quot;bzip2 -d &amp;gt; /mnt/data1/prasad.sql&quot;&lt;/password&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-funda.blogspot.com/feeds/4368917233620550556/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-funda.blogspot.com/2010/05/on-fly-zip-unzip-mysql-backup.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5927448610716894513/posts/default/4368917233620550556'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5927448610716894513/posts/default/4368917233620550556'/><link rel='alternate' type='text/html' href='http://linux-funda.blogspot.com/2010/05/on-fly-zip-unzip-mysql-backup.html' title='On the Fly zip unzip mysql Backup'/><author><name>Prasad</name><uri>http://www.blogger.com/profile/13364954722812023067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://images.orkut.com/orkut/albums/ATgAAAAxEHJfMPC0Fnj0hKyQQHERQjw2Flcfq8GB-sLdsl-cIdVKBeS5T_qsVwZwDwX8L32CDoP4uc-W_g5f55hmPianAJtU9VAHWCSZklj47uFgk2Up00Jz5ilr0Q.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5927448610716894513.post-5081364583118311360</id><published>2010-03-09T03:56:00.000-08:00</published><updated>2010-03-09T03:56:55.978-08:00</updated><title type='text'>Vim Syntax</title><content type='html'>Some times it is observe that vim syntax is not working by default when you install the vim. To git rid of this create the ~/.vimrc file in your home directory with following context&lt;br /&gt;
&lt;br /&gt;
syntax on&lt;br /&gt;
&lt;br /&gt;
thats it. you are done. next time it will automatically support syntax and follow the appropriate coloring information while you do scripting in vim.</content><link rel='replies' type='application/atom+xml' href='http://linux-funda.blogspot.com/feeds/5081364583118311360/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-funda.blogspot.com/2010/03/vim-syntax.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5927448610716894513/posts/default/5081364583118311360'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5927448610716894513/posts/default/5081364583118311360'/><link rel='alternate' type='text/html' href='http://linux-funda.blogspot.com/2010/03/vim-syntax.html' title='Vim Syntax'/><author><name>Prasad</name><uri>http://www.blogger.com/profile/13364954722812023067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://images.orkut.com/orkut/albums/ATgAAAAxEHJfMPC0Fnj0hKyQQHERQjw2Flcfq8GB-sLdsl-cIdVKBeS5T_qsVwZwDwX8L32CDoP4uc-W_g5f55hmPianAJtU9VAHWCSZklj47uFgk2Up00Jz5ilr0Q.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5927448610716894513.post-4147671022313575959</id><published>2009-12-14T06:59:00.000-08:00</published><updated>2009-12-14T07:00:01.398-08:00</updated><title type='text'>Extract Last Field</title><content type='html'>&lt;p style=&quot;font-family: verdana;&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;You can use &#39;cut&#39; to extract the last field of a line if you know how many fields there are, eg:&lt;/span&gt; &lt;span style=&quot;font-size:100%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-weight: bold;font-size:100%;&quot; &gt;field=`cut -d: -f8 file`&lt;/span&gt; &lt;/p&gt;&lt;p style=&quot;font-family: verdana;&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;But if you don&#39;t know the maximum number of fields or the number of fields per line are not consistent, awk can come to the rescue. awk has the inbuilt variable NF for the number of fields. By using this variable we can use it to extract the last field by using:&lt;/span&gt; &lt;/p&gt;&lt;p style=&quot;font-family: verdana; font-weight: bold;&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;field=`awk -F: &#39;{print $NF}&#39;`&lt;/span&gt; &lt;/p&gt;&lt;p style=&quot;font-family: verdana;&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;or you can use calculations to retrieve any field relative to the last field. For example to retrieve the second last field, use:&lt;/span&gt; &lt;/p&gt;&lt;p style=&quot;font-family: verdana; font-weight: bold;&quot;&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;field=`awk -F: &#39;{print $(NF-1)}&#39;`&lt;/span&gt; &lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-funda.blogspot.com/feeds/4147671022313575959/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-funda.blogspot.com/2009/12/extract-last-field.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5927448610716894513/posts/default/4147671022313575959'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5927448610716894513/posts/default/4147671022313575959'/><link rel='alternate' type='text/html' href='http://linux-funda.blogspot.com/2009/12/extract-last-field.html' title='Extract Last Field'/><author><name>Prasad</name><uri>http://www.blogger.com/profile/13364954722812023067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://images.orkut.com/orkut/albums/ATgAAAAxEHJfMPC0Fnj0hKyQQHERQjw2Flcfq8GB-sLdsl-cIdVKBeS5T_qsVwZwDwX8L32CDoP4uc-W_g5f55hmPianAJtU9VAHWCSZklj47uFgk2Up00Jz5ilr0Q.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5927448610716894513.post-4674161106457103301</id><published>2009-10-29T03:39:00.000-07:00</published><updated>2009-10-29T03:40:41.895-07:00</updated><title type='text'>Making current directory available on HTTP</title><content type='html'>&lt;div class=&quot;line&quot; title=&quot;Click to select this command&quot;&gt;                 &lt;div class=&quot;command&quot;&gt;python -m SimpleHTTPServer&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0);font-size:100%;&quot; &gt;Serve current directory tree at http://$HOSTNAME:8000/&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;             &lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-funda.blogspot.com/feeds/4674161106457103301/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-funda.blogspot.com/2009/10/making-current-directory-available-on.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5927448610716894513/posts/default/4674161106457103301'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5927448610716894513/posts/default/4674161106457103301'/><link rel='alternate' type='text/html' href='http://linux-funda.blogspot.com/2009/10/making-current-directory-available-on.html' title='Making current directory available on HTTP'/><author><name>Prasad</name><uri>http://www.blogger.com/profile/13364954722812023067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://images.orkut.com/orkut/albums/ATgAAAAxEHJfMPC0Fnj0hKyQQHERQjw2Flcfq8GB-sLdsl-cIdVKBeS5T_qsVwZwDwX8L32CDoP4uc-W_g5f55hmPianAJtU9VAHWCSZklj47uFgk2Up00Jz5ilr0Q.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5927448610716894513.post-1586697802972060649</id><published>2009-10-29T03:18:00.000-07:00</published><updated>2009-10-29T03:25:25.740-07:00</updated><title type='text'>COMMANDLINEFU.COM</title><content type='html'>&lt;a href=&quot;http://www.commandlinefu.com&quot;&gt;&lt;strong&gt;commandlinefu.com&lt;/strong&gt;&lt;/a&gt; is the place to record those command-line gems that you return to again and again.&lt;br /&gt;&lt;a href=&quot;http://www.commandlinefu.com/commands/browse&quot;&gt;&lt;br /&gt;&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-funda.blogspot.com/feeds/1586697802972060649/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-funda.blogspot.com/2009/10/commandlinefucom.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5927448610716894513/posts/default/1586697802972060649'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5927448610716894513/posts/default/1586697802972060649'/><link rel='alternate' type='text/html' href='http://linux-funda.blogspot.com/2009/10/commandlinefucom.html' title='COMMANDLINEFU.COM'/><author><name>Prasad</name><uri>http://www.blogger.com/profile/13364954722812023067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://images.orkut.com/orkut/albums/ATgAAAAxEHJfMPC0Fnj0hKyQQHERQjw2Flcfq8GB-sLdsl-cIdVKBeS5T_qsVwZwDwX8L32CDoP4uc-W_g5f55hmPianAJtU9VAHWCSZklj47uFgk2Up00Jz5ilr0Q.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5927448610716894513.post-913914697717802644</id><published>2009-07-13T01:02:00.000-07:00</published><updated>2009-08-17T03:08:05.591-07:00</updated><title type='text'>Grep Tips(color=always)</title><content type='html'>Do the following while using grep in future.&lt;br /&gt;&lt;br /&gt;cat httpd.conf | grep --color=always httpd</content><link rel='replies' type='application/atom+xml' href='http://linux-funda.blogspot.com/feeds/913914697717802644/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-funda.blogspot.com/2009/07/grep-tipscoloralways.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5927448610716894513/posts/default/913914697717802644'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5927448610716894513/posts/default/913914697717802644'/><link rel='alternate' type='text/html' href='http://linux-funda.blogspot.com/2009/07/grep-tipscoloralways.html' title='Grep Tips(color=always)'/><author><name>Prasad</name><uri>http://www.blogger.com/profile/13364954722812023067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://images.orkut.com/orkut/albums/ATgAAAAxEHJfMPC0Fnj0hKyQQHERQjw2Flcfq8GB-sLdsl-cIdVKBeS5T_qsVwZwDwX8L32CDoP4uc-W_g5f55hmPianAJtU9VAHWCSZklj47uFgk2Up00Jz5ilr0Q.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5927448610716894513.post-8857736950724729222</id><published>2009-07-13T00:59:00.000-07:00</published><updated>2009-07-13T01:01:11.857-07:00</updated><title type='text'>Apache Adding Login Site Protection</title><content type='html'>&lt;a href=&quot;http://www.yolinux.com/TUTORIALS/LinuxTutorialApacheAddingLoginSiteProtection.html&quot;&gt;http://www.yolinux.com/TUTORIALS/LinuxTutorialApacheAddingLoginSiteProtection.html&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-funda.blogspot.com/feeds/8857736950724729222/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-funda.blogspot.com/2009/07/apache-adding-login-site-protection.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5927448610716894513/posts/default/8857736950724729222'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5927448610716894513/posts/default/8857736950724729222'/><link rel='alternate' type='text/html' href='http://linux-funda.blogspot.com/2009/07/apache-adding-login-site-protection.html' title='Apache Adding Login Site Protection'/><author><name>Prasad</name><uri>http://www.blogger.com/profile/13364954722812023067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://images.orkut.com/orkut/albums/ATgAAAAxEHJfMPC0Fnj0hKyQQHERQjw2Flcfq8GB-sLdsl-cIdVKBeS5T_qsVwZwDwX8L32CDoP4uc-W_g5f55hmPianAJtU9VAHWCSZklj47uFgk2Up00Jz5ilr0Q.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5927448610716894513.post-2844254495663417178</id><published>2009-06-04T05:08:00.000-07:00</published><updated>2009-06-04T05:11:09.797-07:00</updated><title type='text'>Download a website</title><content type='html'>Here is a simple effective way to get the files downloaded recursively from a website without actually visiting each and every link to the sub pages.&lt;br /&gt;&lt;br /&gt;wget -r -p -k -E http://www.linuxdriver.co.il/ldd3/&lt;br /&gt;&lt;br /&gt;...where&lt;br /&gt;&lt;ul&gt;&lt;li&gt;-r is for recursive download of pages&lt;/li&gt;&lt;li&gt;-p is for linking pages locally so that user can browse them easily once the download is completed.&lt;/li&gt;&lt;li&gt;-k is to create the directory structure, and&lt;/li&gt;&lt;li&gt;-E is to create .html extensions to the type XHTML or text files.&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;</content><link rel='replies' type='application/atom+xml' href='http://linux-funda.blogspot.com/feeds/2844254495663417178/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-funda.blogspot.com/2009/06/download-website.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5927448610716894513/posts/default/2844254495663417178'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5927448610716894513/posts/default/2844254495663417178'/><link rel='alternate' type='text/html' href='http://linux-funda.blogspot.com/2009/06/download-website.html' title='Download a website'/><author><name>Prasad</name><uri>http://www.blogger.com/profile/13364954722812023067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://images.orkut.com/orkut/albums/ATgAAAAxEHJfMPC0Fnj0hKyQQHERQjw2Flcfq8GB-sLdsl-cIdVKBeS5T_qsVwZwDwX8L32CDoP4uc-W_g5f55hmPianAJtU9VAHWCSZklj47uFgk2Up00Jz5ilr0Q.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5927448610716894513.post-6069195253521952676</id><published>2009-06-04T05:06:00.000-07:00</published><updated>2009-06-04T05:08:07.087-07:00</updated><title type='text'>Kill all process instances at one go</title><content type='html'>Sometimes you might need to urgently kill all the java processes. Use the following command to do so:&lt;br /&gt;&lt;br /&gt;ps -ef | grep java | xargs kill -9 awk &#39;{print $2}&#39; &gt; /dev/null 2&gt;&amp;amp;1</content><link rel='replies' type='application/atom+xml' href='http://linux-funda.blogspot.com/feeds/6069195253521952676/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linux-funda.blogspot.com/2009/06/kill-all-process-instances-at-one-go.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5927448610716894513/posts/default/6069195253521952676'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5927448610716894513/posts/default/6069195253521952676'/><link rel='alternate' type='text/html' href='http://linux-funda.blogspot.com/2009/06/kill-all-process-instances-at-one-go.html' title='Kill all process instances at one go'/><author><name>Prasad</name><uri>http://www.blogger.com/profile/13364954722812023067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='22' src='http://images.orkut.com/orkut/albums/ATgAAAAxEHJfMPC0Fnj0hKyQQHERQjw2Flcfq8GB-sLdsl-cIdVKBeS5T_qsVwZwDwX8L32CDoP4uc-W_g5f55hmPianAJtU9VAHWCSZklj47uFgk2Up00Jz5ilr0Q.jpg'/></author><thr:total>0</thr:total></entry></feed>