<?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: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-14893147</id><updated>2011-04-21T15:25:56.726-07:00</updated><title type='text'>Smart Shetti</title><subtitle type='html'>I'm smart!</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://dumbshetti.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/14893147/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://dumbshetti.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>dumb-shetti</name><uri>http://www.blogger.com/profile/11086325479734315944</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>11</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-14893147.post-115020087124401892</id><published>2006-06-13T05:13:00.000-07:00</published><updated>2006-06-13T05:14:31.256-07:00</updated><title type='text'></title><content type='html'>&lt;span style="font-size:130%;"&gt;&lt;span style="font-family:Verdana;"&gt;You can  listen to any PDF instead of reading with&lt;br /&gt;Adobe Reader 7 .0 Or&lt;span class="560433508-08062006"&gt;&lt;span style="color:#0000ff;"&gt;  &lt;/span&gt;&lt;/span&gt;6.0, and the  short cut is:&lt;span class="560433508-08062006"&gt;&lt;span style="color:#0000ff;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;div&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-family:Verdana;"&gt;&lt;span class="560433508-08062006"&gt; &lt;/span&gt;&lt;br /&gt;Ctrl+shift+b - to hear the entire  Document&lt;br /&gt;Ctrl+shift+v - to hear the page&lt;br /&gt;Ctrl+shift+c - to pause and  resume&lt;br /&gt;Ctrl+shift+e - to stop&lt;br /&gt;&lt;br /&gt;Open any PDF File and test....  &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/14893147-115020087124401892?l=dumbshetti.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dumbshetti.blogspot.com/feeds/115020087124401892/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=14893147&amp;postID=115020087124401892' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/14893147/posts/default/115020087124401892'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/14893147/posts/default/115020087124401892'/><link rel='alternate' type='text/html' href='http://dumbshetti.blogspot.com/2006/06/you-can-listen-to-any-pdf-instead-of.html' title=''/><author><name>dumb-shetti</name><uri>http://www.blogger.com/profile/11086325479734315944</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-14893147.post-113653746555273460</id><published>2006-01-06T00:43:00.000-08:00</published><updated>2006-01-06T00:51:40.990-08:00</updated><title type='text'></title><content type='html'>&lt;strong&gt;If you ever need to recompile your kernel!!!&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;do the following steps!&lt;br /&gt;1. go to directory where linux source is kept&lt;br /&gt;2. run make xconfig (you can also do menuconfig), and choose all that you need for the kernel&lt;br /&gt;3. make clean&lt;br /&gt;4. make depend&lt;br /&gt;5. make bzImage (this builds the image)&lt;br /&gt;6. make modules (this builds the kernel modules)&lt;br /&gt;7. make modules_install(god knows)&lt;br /&gt;8. cp arch/i386/boot/bzImage /boot/vmlinuz-2.2.24-new&lt;br /&gt;9. cp System.map /boot/System.map-2.2.24-new&lt;br /&gt;10. edit /etc/lilo.conf&lt;br /&gt;add following lines&lt;br /&gt;image=/boot/vmlinuz-2.2.24-new&lt;br /&gt;label=linux-new&lt;br /&gt;11. lilo -v&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/14893147-113653746555273460?l=dumbshetti.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dumbshetti.blogspot.com/feeds/113653746555273460/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=14893147&amp;postID=113653746555273460' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/14893147/posts/default/113653746555273460'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/14893147/posts/default/113653746555273460'/><link rel='alternate' type='text/html' href='http://dumbshetti.blogspot.com/2006/01/if-you-ever-need-to-recompile-your_06.html' title=''/><author><name>dumb-shetti</name><uri>http://www.blogger.com/profile/11086325479734315944</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-14893147.post-113263011478272156</id><published>2005-11-21T19:22:00.000-08:00</published><updated>2005-11-21T19:28:34.793-08:00</updated><title type='text'></title><content type='html'>&lt;strong&gt;Useful gvim tips&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;set incsearch&lt;br /&gt;set ic&lt;br /&gt;set ruler&lt;br /&gt;set hls&lt;br /&gt;set smartindent&lt;br /&gt;sy on&lt;br /&gt;set tags=&lt;tagfile&gt;&lt;br /&gt;set cindent&lt;br /&gt;set sw=4&lt;br /&gt;set ts=4&lt;br /&gt;set expandtab&lt;br /&gt;set softtabstop=4&lt;br /&gt;set guifont=-BIZNET-FotinosTypewriter-Medium-R-Normal-Sans-12-120-75-75-M-70-ISO8859-2&lt;br /&gt;highlight Normal guibg=grey&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Useful X specific commands&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;xhosts + (disables access controls)&lt;br /&gt;xset -d   (disables beeps)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/14893147-113263011478272156?l=dumbshetti.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dumbshetti.blogspot.com/feeds/113263011478272156/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=14893147&amp;postID=113263011478272156' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/14893147/posts/default/113263011478272156'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/14893147/posts/default/113263011478272156'/><link rel='alternate' type='text/html' href='http://dumbshetti.blogspot.com/2005/11/useful-gvim-tips-set-incsearch-set-ic.html' title=''/><author><name>dumb-shetti</name><uri>http://www.blogger.com/profile/11086325479734315944</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-14893147.post-112564333599265411</id><published>2005-09-01T23:40:00.000-07:00</published><updated>2006-02-12T05:29:25.930-08:00</updated><title type='text'></title><content type='html'>&lt;span style="font-weight: bold;"&gt;Dont know XML???&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;a href="http://www.vivtek.com/xml.html"&gt;http://www.vivtek.com/xml.html&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.xml.com/"&gt;http://www.xml.com/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;generate XML parser code???&lt;br /&gt;link is here!!!&lt;br /&gt;&lt;a href="http://www.rpbourret.com/xml/XMLDataBinding.htm"&gt;http://www.rpbourret.com/xml/XMLDataBinding.htm&lt;/a&gt;&lt;br /&gt;&lt;a href="http://sourceforge.net/projects/xmel/"&gt;http://sourceforge.net/projects/xmel/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;here is nice faq's about XML namespaces and its myths!&lt;br /&gt;&lt;a href="http://www.rpbourret.com/xml/NamespacesFAQ.htm"&gt;http://www.rpbourret.com/xml/NamespacesFAQ.htm&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.rpbourret.com/xml/NamespaceMyths.htm#myth4"&gt;http://www.rpbourret.com/xml/NamespaceMyths.htm#myth4&lt;/a&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/14893147-112564333599265411?l=dumbshetti.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dumbshetti.blogspot.com/feeds/112564333599265411/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=14893147&amp;postID=112564333599265411' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/14893147/posts/default/112564333599265411'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/14893147/posts/default/112564333599265411'/><link rel='alternate' type='text/html' href='http://dumbshetti.blogspot.com/2005/09/dont-know-xml-httpwww.html' title=''/><author><name>dumb-shetti</name><uri>http://www.blogger.com/profile/11086325479734315944</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-14893147.post-112547069850660997</id><published>2005-08-30T23:43:00.000-07:00</published><updated>2005-08-30T23:44:58.513-07:00</updated><title type='text'></title><content type='html'>&lt;span style="font-weight: bold;"&gt;Some APIs for bench marking performance&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;getrusage()&lt;br /&gt;gethrtime()&lt;br /&gt;gethrvtime()&lt;br /&gt;&lt;br /&gt;The above api's might not be available in all the platforms consistently.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/14893147-112547069850660997?l=dumbshetti.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dumbshetti.blogspot.com/feeds/112547069850660997/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=14893147&amp;postID=112547069850660997' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/14893147/posts/default/112547069850660997'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/14893147/posts/default/112547069850660997'/><link rel='alternate' type='text/html' href='http://dumbshetti.blogspot.com/2005/08/some-apis-for-bench-marking.html' title=''/><author><name>dumb-shetti</name><uri>http://www.blogger.com/profile/11086325479734315944</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-14893147.post-112427159719257478</id><published>2005-08-17T02:37:00.000-07:00</published><updated>2005-08-17T02:39:57.196-07:00</updated><title type='text'></title><content type='html'>&lt;span style="font-weight: bold;"&gt;Regular expression greps (egrep)&lt;br /&gt;&lt;/span&gt;use &lt;span style="font-style: italic;"&gt;egrep &lt;/span&gt;instead of &lt;span style="font-style: italic;"&gt;grep&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;for ex:&lt;br /&gt;&lt;span style="font-style: italic;"&gt;egrep "yes|no" &lt;filename&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;will grep for occurence of lines containing "yes" or "no" in the given file.&lt;span style="font-style: italic;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/14893147-112427159719257478?l=dumbshetti.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dumbshetti.blogspot.com/feeds/112427159719257478/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=14893147&amp;postID=112427159719257478' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/14893147/posts/default/112427159719257478'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/14893147/posts/default/112427159719257478'/><link rel='alternate' type='text/html' href='http://dumbshetti.blogspot.com/2005/08/regular-expression-greps-egrep-use.html' title=''/><author><name>dumb-shetti</name><uri>http://www.blogger.com/profile/11086325479734315944</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-14893147.post-112426926625173701</id><published>2005-08-17T01:57:00.000-07:00</published><updated>2005-08-17T02:03:27.250-07:00</updated><title type='text'></title><content type='html'>&lt;span style="font-weight: bold;"&gt;Useful GDB tutorial on process memory map etc..&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;a href="http://www.dirac.org/linux/gdb/02-Memory_Layout_And_The_Stack.php"&gt;memory layout and stack&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;definitely useful link to be read before you attend any interview or conduct an interview, esp folks who forget basics very often.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/14893147-112426926625173701?l=dumbshetti.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dumbshetti.blogspot.com/feeds/112426926625173701/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=14893147&amp;postID=112426926625173701' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/14893147/posts/default/112426926625173701'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/14893147/posts/default/112426926625173701'/><link rel='alternate' type='text/html' href='http://dumbshetti.blogspot.com/2005/08/useful-gdb-tutorial-on-process-memory.html' title=''/><author><name>dumb-shetti</name><uri>http://www.blogger.com/profile/11086325479734315944</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-14893147.post-112305124480690780</id><published>2005-08-02T23:35:00.000-07:00</published><updated>2005-08-17T02:54:56.313-07:00</updated><title type='text'></title><content type='html'>&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold;"&gt;Useful GDB commands&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;How to set display length of character buffer?&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;You should have noticed that whenever you try printing a big buffer, GDB will print only first few characters. This happens due to default GDB configuration, where "print elements" might have been set to 200. To change the print limit to higher value, do the following on GDB prompt.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;set print elements 2000&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;You can also make use of &lt;span style="font-weight: bold;"&gt;show &lt;/span&gt;command in GDB to get all the values set for various configuration variables as follows:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;show print&lt;br /&gt;&lt;br /&gt;How to print stack information?&lt;br /&gt;&lt;/span&gt;&lt;a href="http://www.chemie.fu-berlin.de/chemnet/use/info/gdb/gdb_7.html"&gt;&lt;font&gt;here is the link&lt;/font&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;example gdb commands:&lt;br /&gt;&lt;span style="font-style: italic;"&gt;info args&lt;br /&gt;info locals&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;I shall add more GDB know-how's as I learn them&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="font-size:100%;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/14893147-112305124480690780?l=dumbshetti.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dumbshetti.blogspot.com/feeds/112305124480690780/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=14893147&amp;postID=112305124480690780' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/14893147/posts/default/112305124480690780'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/14893147/posts/default/112305124480690780'/><link rel='alternate' type='text/html' href='http://dumbshetti.blogspot.com/2005/08/useful-gdb-commands-how-to-set-display.html' title=''/><author><name>dumb-shetti</name><uri>http://www.blogger.com/profile/11086325479734315944</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-14893147.post-112304950987952249</id><published>2005-08-02T23:02:00.000-07:00</published><updated>2005-08-02T23:11:49.883-07:00</updated><title type='text'></title><content type='html'>&lt;span style="font-weight: bold;"&gt;&lt;span style="font-size:130%;"&gt;Shell commands&lt;/span&gt;&lt;br /&gt;How to extract unique line entries from a file?&lt;/span&gt;&lt;br /&gt;cat &lt;file&gt; | sort -u&lt;br /&gt;This command is particularly useful where you have lots of repeating information such as IDs, URLs which appear as separate lines.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Pattern search on gvim not matching part of string?&lt;/span&gt;&lt;br /&gt;/&lt;text&gt;[^&lt;unmatching&gt;]&lt;br /&gt;ex&lt;br /&gt;/leaked [^0]&lt;br /&gt;The above vim search will highlight the non-Zero leak occurances.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;How to list contents of tar archive?&lt;br /&gt;&lt;/span&gt;tar -tvf &lt;tar&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/14893147-112304950987952249?l=dumbshetti.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dumbshetti.blogspot.com/feeds/112304950987952249/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=14893147&amp;postID=112304950987952249' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/14893147/posts/default/112304950987952249'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/14893147/posts/default/112304950987952249'/><link rel='alternate' type='text/html' href='http://dumbshetti.blogspot.com/2005/08/shell-commands-how-to-extract-unique.html' title=''/><author><name>dumb-shetti</name><uri>http://www.blogger.com/profile/11086325479734315944</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-14893147.post-112255629701842654</id><published>2005-07-28T05:51:00.000-07:00</published><updated>2005-07-28T06:15:17.640-07:00</updated><title type='text'></title><content type='html'>&lt;span style="font-weight: bold;"&gt;first blog day's learning&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;----------------------------&lt;br /&gt;1. Why the hell pexpect (python expect) doesnt spawn my shell script?#?#?#?&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;let me talk first about&lt;span style="font-weight: bold;"&gt;&lt;span style="font-weight: bold;"&gt; &lt;/span&gt;&lt;a href="http://pexpect.sourceforge.net/"&gt;pexpect&lt;/a&gt; &lt;/span&gt;:- This a nice python library using which you can do lots of automation kinda work. Especially if you are boared of repetitive manual testing using a console application. You can simply write a python script, which uses this library and spawn the application, feed input, expect/read output etc etc...&lt;br /&gt;Also helps if you want to run &lt;span style="font-weight: bold;"&gt;load/torture&lt;/span&gt; tests using an application which requires console interaction.&lt;br /&gt;&lt;br /&gt;Now let me concentrate why the shell script which I was trying to launch using pexpect's spawn() function wasnt working?&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;well, the script didnot have "#!/bin/bash' as first line.&lt;/span&gt;&lt;br /&gt;Internally the execv command was having bad executable format error!!!&lt;br /&gt;It required half a day to figureout the same and I had to write a C program to figure it.&lt;br /&gt;&lt;br /&gt;Remeber one more thing:- pexpect's spawn method takes exe and it's arguments as a string. &lt;span style="font-weight: bold;"&gt;Becareful, and ensure that arguments are separated with one and only one space!&lt;/span&gt;&lt;br /&gt;an extra space shall be treated as an additional argument and number of args passed to execv's argument array shall be higher than expected. This &lt;span style="font-weight: bold;"&gt;(not-a-)&lt;/span&gt;mistake might cause the program to display its usage (ie. how to use the program via command line), though you have used it correctly!!!&lt;br /&gt;&lt;br /&gt;using pexpect you can do many cool things like automatically ftp/telnet login, without bothering to give the username/password again and again... (provided u are not bothered of password security)&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/14893147-112255629701842654?l=dumbshetti.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dumbshetti.blogspot.com/feeds/112255629701842654/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=14893147&amp;postID=112255629701842654' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/14893147/posts/default/112255629701842654'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/14893147/posts/default/112255629701842654'/><link rel='alternate' type='text/html' href='http://dumbshetti.blogspot.com/2005/07/first-blog-days-learning-1.html' title=''/><author><name>dumb-shetti</name><uri>http://www.blogger.com/profile/11086325479734315944</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-14893147.post-112255505836069108</id><published>2005-07-28T05:45:00.000-07:00</published><updated>2005-07-28T05:50:58.366-07:00</updated><title type='text'></title><content type='html'>This blog is exclusively for folks like me (forgetful, lots of uncommonsense) :)&lt;br /&gt;Most people who I see around have atleast more or less similar degree of above traits.&lt;br /&gt;I shall blog the learnings which one should not forget (atleast I shouldnot) in future and shouldnt go for reinventing the wheel.&lt;br /&gt;---&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/14893147-112255505836069108?l=dumbshetti.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dumbshetti.blogspot.com/feeds/112255505836069108/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=14893147&amp;postID=112255505836069108' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/14893147/posts/default/112255505836069108'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/14893147/posts/default/112255505836069108'/><link rel='alternate' type='text/html' href='http://dumbshetti.blogspot.com/2005/07/this-blog-is-exclusively-for-folks.html' title=''/><author><name>dumb-shetti</name><uri>http://www.blogger.com/profile/11086325479734315944</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
