<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>LINUX programming Forum RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest threads from the 'LINUX programming' forum at Programmer's Heaven, excluding replies.</description>
    <language>en</language>
    <copyright>Copyright 2010 Programmers Heaven</copyright>
    <pubDate>Tue, 16 Mar 2010 10:04:08 -0700</pubDate>
    <lastBuildDate>Tue, 16 Mar 2010 10:04:08 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>Programs that will communicate via shared memory and semaphores.</title>
      <link>http://www.programmersheaven.com/mb/Linux/414031/414031/programs-that-will-communicate-via-shared-memory-and-semaphores/</link>
      <description>Write 2 programs that will communicate via shared memory and semaphores. Data will be exchanged via memory and semaphores will be used to synchronise and notify each process when operations such as memory loaded and memory read have been performed.&lt;br /&gt;
&lt;br /&gt;
Thnaking u&lt;br /&gt;
KRISH&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/Linux/414031/414031/programs-that-will-communicate-via-shared-memory-and-semaphores/</guid>
      <pubDate>Mon, 01 Mar 2010 03:48:58 -0700</pubDate>
      <category>LINUX programming</category>
    </item>
    <item>
      <title>How can I implement our own sleep call in c language?</title>
      <link>http://www.programmersheaven.com/mb/Linux/413675/413675/how-can-i-implement-our-own-sleep-call-in-c-language/</link>
      <description>Hoiiii&lt;br /&gt;
&lt;br /&gt;
      How can I implement our own sleep call in c language?&lt;br /&gt;
&lt;br /&gt;
      Any idea ...???&lt;br /&gt;
&lt;br /&gt;
Thanking you,&lt;br /&gt;
Krish&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/Linux/413675/413675/how-can-i-implement-our-own-sleep-call-in-c-language/</guid>
      <pubDate>Fri, 19 Feb 2010 08:56:13 -0700</pubDate>
      <category>LINUX programming</category>
    </item>
    <item>
      <title>What happens when a process executes unlink(".");</title>
      <link>http://www.programmersheaven.com/mb/Linux/413674/413674/what-happens-when-a-process-executes-unlink/</link>
      <description>&lt;br /&gt;
hiii&lt;br /&gt;
&lt;br /&gt;
What happens when a process executes unlink(".");&lt;br /&gt;
What is the current directory of the process ? (Assume superuser permissions are given.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Thanking you&lt;br /&gt;
Krish&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/Linux/413674/413674/what-happens-when-a-process-executes-unlink/</guid>
      <pubDate>Fri, 19 Feb 2010 08:47:31 -0700</pubDate>
      <category>LINUX programming</category>
    </item>
    <item>
      <title>Linux programming how to?</title>
      <link>http://www.programmersheaven.com/mb/Linux/413465/413465/linux-programming-how-to/</link>
      <description>Dear friends ,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
i am a wannabe linux programmer, i'm using ubuntu and wish to add a functionality like this :&lt;br /&gt;
the system should indicate the successful detection of usb device by a sound signal , please tell me how do i get started&lt;br /&gt;
i am a beginner in linux programming , please help me.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/Linux/413465/413465/linux-programming-how-to/</guid>
      <pubDate>Sun, 14 Feb 2010 18:34:08 -0700</pubDate>
      <category>LINUX programming</category>
    </item>
    <item>
      <title>the clock_gettime sys call</title>
      <link>http://www.programmersheaven.com/mb/Linux/412674/412674/the-clock_gettime-sys-call/</link>
      <description>Hi,&lt;br /&gt;
    I was trying to use the clock gettime function  as below .........&lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;clock_gettime( CLOCK_REALTIME, &amp;amp;oldTime)&lt;/em&gt;&lt;br /&gt;
&lt;br /&gt;
...but gettin an undefined reference to 'clock_gettime' error message....can't figure out why... I check the man pages and it needs time.h which has already been included in the code.... can someone help. Thanks</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/Linux/412674/412674/the-clock_gettime-sys-call/</guid>
      <pubDate>Sun, 31 Jan 2010 20:22:52 -0700</pubDate>
      <category>LINUX programming</category>
    </item>
    <item>
      <title>Regular expression, text replacement using simple edit</title>
      <link>http://www.programmersheaven.com/mb/Linux/412672/412672/regular-expression-text-replacement-using-simple-edit/</link>
      <description>I'm trying to make a shell script that can change class names in source files.&lt;br /&gt;
&lt;br /&gt;
The following will run without an error message but it doesn't do exactly what I want.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;sed 's/from/to/g' somefile_containing_from.txt&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
That command will replace all occurrences of the word "from" to "to" while printing out the contents of the file. What I need is something where it only matches when there is a non-letter before and after the "from". &lt;br /&gt;
&lt;br /&gt;
Due to the problem in the above command, the following undesired replacements happen:&lt;br /&gt;
&lt;br /&gt;
File contents for student.java before running through sed command:&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
public class student
{
   private student[] topstudent;
}
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
using command:&lt;br /&gt;
&lt;pre class="sourcecode"&gt;sed 's/student/Student/g' student.java&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Prints the following:&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
public class Student
{
   private Student[] topStudent;
}
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Notice that the variable name changed because it found "student" in the output even though topstudent was not the class name.</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/Linux/412672/412672/regular-expression-text-replacement-using-simple-edit/</guid>
      <pubDate>Sun, 31 Jan 2010 18:35:41 -0700</pubDate>
      <category>LINUX programming</category>
    </item>
    <item>
      <title>Needed to compile my first kernel program</title>
      <link>http://www.programmersheaven.com/mb/Linux/411955/411955/needed-to-compile-my-first-kernel-program/</link>
      <description>Please Help needed to compile my first kernel program&lt;br /&gt;
&lt;br /&gt;
I have compile &amp;amp; install new kernel 2.6.32.3 on path:  /root/linux2.6.32.3/&lt;br /&gt;
I have written small program [shown below] at path:  /root/abc/&lt;br /&gt;
&lt;br /&gt;
I already compile &amp;amp; install kernel 2.6.32.3 on fedora 10 machine &amp;amp; check /boot/grub/menu1.st entry it is there.&lt;br /&gt;
&lt;br /&gt;
My program giving an error when I "make" &lt;br /&gt;
++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++&lt;br /&gt;
&lt;br /&gt;
uname: extra operand `.r'&lt;br /&gt;
Try `uname --help' for more information.&lt;br /&gt;
uname: extra operand `.r'&lt;br /&gt;
Try `uname --help' for more information.&lt;br /&gt;
make: Nothing to be done for `all'.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++&lt;br /&gt;
&lt;br /&gt;
My Kernel Program&lt;br /&gt;
&lt;br /&gt;
++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++&lt;br /&gt;
/*&lt;br /&gt;
* hello.1.c . The simplest kernel module.&lt;br /&gt;
*/&lt;br /&gt;
#include &amp;lt;/root/linux-2.6.32.3/include/linux/module.h&amp;gt; /* Needed by all modules */&lt;br /&gt;
#include &amp;lt;/root/linux-2.6.32.3/include/linux/kernel.h&amp;gt; /* Needed for KERN_INFO */&lt;br /&gt;
&lt;br /&gt;
int init_module(void)&lt;br /&gt;
{&lt;br /&gt;
printk(KERN_INFO "Hello world 1.\n");&lt;br /&gt;
/*&lt;br /&gt;
* A non 0 return means init_module failed; module can't be loaded.&lt;br /&gt;
*/&lt;br /&gt;
return 0;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void cleanup_module(void)&lt;br /&gt;
{&lt;br /&gt;
printk(KERN_INFO "Goodbye world 1.\n");&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++&lt;br /&gt;
Makefile look like&lt;br /&gt;
&lt;br /&gt;
obj.m += hello.1.o&lt;br /&gt;
all:&lt;br /&gt;
make .C /lib/modules/$(shell uname .r)/build M=$(PWD) modules&lt;br /&gt;
clean:&lt;br /&gt;
make .C /lib/modules/$(shell uname .r)/build M=$(PWD) clean&lt;br /&gt;
&lt;br /&gt;
++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++~&lt;br /&gt;
~&lt;br /&gt;
  &lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/Linux/411955/411955/needed-to-compile-my-first-kernel-program/</guid>
      <pubDate>Thu, 14 Jan 2010 21:36:01 -0700</pubDate>
      <category>LINUX programming</category>
    </item>
    <item>
      <title>Please Help needed to compile my first kernel program</title>
      <link>http://www.programmersheaven.com/mb/Linux/411954/411954/please-help-needed-to-compile-my-first-kernel-program/</link>
      <description>Please Help needed to compile my first kernel program&lt;br /&gt;
&lt;br /&gt;
I have compile &amp;amp; install new kernel 2.6.32.3 on path:  /root/linux2.6.32.3/&lt;br /&gt;
I have written small program [shown below] at path:  /root/abc/&lt;br /&gt;
&lt;br /&gt;
I already compile &amp;amp; install kernel 2.6.32.3 on fedora 10 machine &amp;amp; check /boot/grub/menu1.st entry it is there.&lt;br /&gt;
&lt;br /&gt;
My program giving an error when I "make" &lt;br /&gt;
++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++&lt;br /&gt;
&lt;br /&gt;
uname: extra operand `.r'&lt;br /&gt;
Try `uname --help' for more information.&lt;br /&gt;
uname: extra operand `.r'&lt;br /&gt;
Try `uname --help' for more information.&lt;br /&gt;
make: Nothing to be done for `all'.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++&lt;br /&gt;
&lt;br /&gt;
My Kernel Program&lt;br /&gt;
&lt;br /&gt;
++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++&lt;br /&gt;
/*&lt;br /&gt;
* hello.1.c . The simplest kernel module.&lt;br /&gt;
*/&lt;br /&gt;
#include &amp;lt;/root/linux-2.6.32.3/include/linux/module.h&amp;gt; /* Needed by all modules */&lt;br /&gt;
#include &amp;lt;/root/linux-2.6.32.3/include/linux/kernel.h&amp;gt; /* Needed for KERN_INFO */&lt;br /&gt;
&lt;br /&gt;
int init_module(void)&lt;br /&gt;
{&lt;br /&gt;
printk(KERN_INFO "Hello world 1.\n");&lt;br /&gt;
/*&lt;br /&gt;
* A non 0 return means init_module failed; module can't be loaded.&lt;br /&gt;
*/&lt;br /&gt;
return 0;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void cleanup_module(void)&lt;br /&gt;
{&lt;br /&gt;
printk(KERN_INFO "Goodbye world 1.\n");&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++&lt;br /&gt;
Makefile look like&lt;br /&gt;
&lt;br /&gt;
obj.m += hello.1.o&lt;br /&gt;
all:&lt;br /&gt;
make .C /lib/modules/$(shell uname .r)/build M=$(PWD) modules&lt;br /&gt;
clean:&lt;br /&gt;
make .C /lib/modules/$(shell uname .r)/build M=$(PWD) clean&lt;br /&gt;
&lt;br /&gt;
++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++~&lt;br /&gt;
myemail id : rachilmeth@googlemail.com &lt;br /&gt;
~&lt;br /&gt;
  &lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/Linux/411954/411954/please-help-needed-to-compile-my-first-kernel-program/</guid>
      <pubDate>Thu, 14 Jan 2010 21:35:08 -0700</pubDate>
      <category>LINUX programming</category>
    </item>
    <item>
      <title>Please Help needed to compile my first kernel program</title>
      <link>http://www.programmersheaven.com/mb/Linux/411953/411953/please-help-needed-to-compile-my-first-kernel-program/</link>
      <description>Please Help needed to compile my first kernel program&lt;br /&gt;
&lt;br /&gt;
I have compile &amp;amp; install new kernel 2.6.32.3 on path:  /root/linux2.6.32.3/&lt;br /&gt;
I have written small program [shown below] at path:  /root/abc/&lt;br /&gt;
&lt;br /&gt;
I already compile &amp;amp; install kernel 2.6.32.3 on fedora 10 machine &amp;amp; check /boot/grub/menu1.st entry it is there.&lt;br /&gt;
&lt;br /&gt;
My program giving an error when I "make" &lt;br /&gt;
++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++&lt;br /&gt;
&lt;br /&gt;
uname: extra operand `.r'&lt;br /&gt;
Try `uname --help' for more information.&lt;br /&gt;
uname: extra operand `.r'&lt;br /&gt;
Try `uname --help' for more information.&lt;br /&gt;
make: Nothing to be done for `all'.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++&lt;br /&gt;
&lt;br /&gt;
My Kernel Program&lt;br /&gt;
&lt;br /&gt;
++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++&lt;br /&gt;
/*&lt;br /&gt;
* hello.1.c . The simplest kernel module.&lt;br /&gt;
*/&lt;br /&gt;
#include &amp;lt;/root/linux-2.6.32.3/include/linux/module.h&amp;gt; /* Needed by all modules */&lt;br /&gt;
#include &amp;lt;/root/linux-2.6.32.3/include/linux/kernel.h&amp;gt; /* Needed for KERN_INFO */&lt;br /&gt;
&lt;br /&gt;
int init_module(void)&lt;br /&gt;
{&lt;br /&gt;
printk(KERN_INFO "Hello world 1.\n");&lt;br /&gt;
/*&lt;br /&gt;
* A non 0 return means init_module failed; module can't be loaded.&lt;br /&gt;
*/&lt;br /&gt;
return 0;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void cleanup_module(void)&lt;br /&gt;
{&lt;br /&gt;
printk(KERN_INFO "Goodbye world 1.\n");&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++&lt;br /&gt;
Makefile look like&lt;br /&gt;
&lt;br /&gt;
obj.m += hello.1.o&lt;br /&gt;
all:&lt;br /&gt;
make .C /lib/modules/$(shell uname .r)/build M=$(PWD) modules&lt;br /&gt;
clean:&lt;br /&gt;
make .C /lib/modules/$(shell uname .r)/build M=$(PWD) clean&lt;br /&gt;
&lt;br /&gt;
++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++~&lt;br /&gt;
myemail id : rachilmeth@googlemail.com &lt;br /&gt;
~&lt;br /&gt;
  &lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/Linux/411953/411953/please-help-needed-to-compile-my-first-kernel-program/</guid>
      <pubDate>Thu, 14 Jan 2010 21:33:17 -0700</pubDate>
      <category>LINUX programming</category>
    </item>
    <item>
      <title>Linux on PowerPC: How to use timer interrupt?</title>
      <link>http://www.programmersheaven.com/mb/Linux/411689/411689/linux-on-powerpc-how-to-use-timer-interrupt/</link>
      <description>Hello!&lt;br /&gt;
&lt;br /&gt;
Nowadays I try to use PowerPC in Linux. I am porting some codes which were implemented for ARM core. In this code, it can set timer interrupt with micro time unit. In order to this, it uses OSCR, OSMR1, OIER registers, which exists in pxa270 Processor (ARM core)&lt;br /&gt;
&lt;br /&gt;
Actually, I want to implement this function on PowerPC, but I think PowerPC doesn't provide registers for configuring timer interrupt.&lt;br /&gt;
&lt;br /&gt;
The board which I use is GE Faunc VG5, and its mircoprocessor is PowerPC MPC7455. I read MPC7455 Manual, but I cannot find the register related to timer interrupt. There is only timer count clock register. (TBU and TBL)&lt;br /&gt;
&lt;br /&gt;
So, what is the method of implementing timer interrupt in PowerPC?&lt;br /&gt;
If I want to make an interrupt after 200us, how can I implement it in Linux on PowerPC?&lt;br /&gt;
&lt;br /&gt;
Please, if there are any one who knows well, let me know the method!&lt;br /&gt;
&lt;br /&gt;
Have a good day!&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/Linux/411689/411689/linux-on-powerpc-how-to-use-timer-interrupt/</guid>
      <pubDate>Fri, 08 Jan 2010 07:14:17 -0700</pubDate>
      <category>LINUX programming</category>
    </item>
    <item>
      <title>How to migrate to Linux?</title>
      <link>http://www.programmersheaven.com/mb/Linux/411415/411415/how-to-migrate-to-linux/</link>
      <description>I use windows XP and want to migrate to linux OS. I want to migrate urgently because i m fed of viruses, slowing down of windows etc.Please your suggestions or experiences. &lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/Linux/411415/411415/how-to-migrate-to-linux/</guid>
      <pubDate>Thu, 31 Dec 2009 05:41:30 -0700</pubDate>
      <category>LINUX programming</category>
    </item>
    <item>
      <title>makefile to convert jpeg files to png files</title>
      <link>http://www.programmersheaven.com/mb/Linux/410043/410043/makefile-to-convert-jpeg-files-to-png-files/</link>
      <description>Hello!&lt;br /&gt;
&lt;br /&gt;
I'm desperately trying to write a makefile that converts and scales jpeg files to png files in subdirectories&lt;br /&gt;
&lt;br /&gt;
I want to use netpbm, so I just need the commands:&lt;br /&gt;
anytopnm&lt;br /&gt;
pnmscale&lt;br /&gt;
pnmtopng&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For various reasons i want to use a makefile. This is the first time i use the make tool and it's a too complicated for me.&lt;br /&gt;
Here is my attempt, without resizing untill now:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;all :
    find -name "*.jpeg" &amp;gt; alljpeg.txt
    @anytopnm `cat alljpeg.txt | sort | uniq -u` &amp;gt; $@.png
    @echo "$@" &amp;gt;&amp;gt; clean.log&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
but it doesn't work, I already had six attempts but always the same, I'm reading now for 4 hours an I still think I#m not any closer to a solution.&lt;br /&gt;
&lt;br /&gt;
Any help will be appreciated!&lt;br /&gt;
&lt;br /&gt;
Clueless greetings&lt;br /&gt;
&lt;br /&gt;
Henningbaer&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/Linux/410043/410043/makefile-to-convert-jpeg-files-to-png-files/</guid>
      <pubDate>Sun, 29 Nov 2009 16:16:04 -0700</pubDate>
      <category>LINUX programming</category>
    </item>
    <item>
      <title>About splice systemcall problem</title>
      <link>http://www.programmersheaven.com/mb/Linux/409626/409626/about-splice-systemcall-problem/</link>
      <description>hi,&lt;br /&gt;
   while i was using splice system call for copy one file to another,&lt;br /&gt;
I got the error is given below:&lt;br /&gt;
&lt;br /&gt;
splice() (from) failed: Invalid argument&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In file:&lt;br /&gt;
       int relay_fd,log_fd;&lt;br /&gt;
        int pipe_fd[2];&lt;br /&gt;
        int retval;&lt;br /&gt;
 After open the files,&lt;br /&gt;
   &lt;br /&gt;
   retval = splice(relay_fd, NULL, pipe_fd[1], NULL, 128, SPLICE_F_MOVE);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you have any idea, please help me.&lt;br /&gt;
&lt;br /&gt;
Regards,&lt;br /&gt;
manikandan&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/Linux/409626/409626/about-splice-systemcall-problem/</guid>
      <pubDate>Fri, 20 Nov 2009 03:35:59 -0700</pubDate>
      <category>LINUX programming</category>
    </item>
    <item>
      <title>pthread_mutex_call blocks forever causing cpu usage 100%</title>
      <link>http://www.programmersheaven.com/mb/Linux/409339/409339/pthread_mutex_call-blocks-forever-causing-cpu-usage-100/</link>
      <description>pthread_mutex_lock() call never returns causing other threads to wait &lt;br /&gt;
for gaining its lock forever in turn causing 100% cpu load. I have tried &lt;br /&gt;
using alternate call pthread_mutex_trylock() which try to lock and if the &lt;br /&gt;
mutex is locked in some other thread it returns with an error code.&lt;br /&gt;
&lt;br /&gt;
The above mentioned call pthread_mutex_lock is used in an application which &lt;br /&gt;
goes to full cpu load once mutex blocks forever, and even if i kill the application &lt;br /&gt;
and restart it, it will again go to full cpu load, the problem of full cpu load only gets &lt;br /&gt;
resolved when i restart the machine, is there any other alternate call or any other &lt;br /&gt;
possible solution for this problem.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/Linux/409339/409339/pthread_mutex_call-blocks-forever-causing-cpu-usage-100/</guid>
      <pubDate>Sun, 15 Nov 2009 21:55:43 -0700</pubDate>
      <category>LINUX programming</category>
    </item>
    <item>
      <title>hello</title>
      <link>http://www.programmersheaven.com/mb/Linux/409011/409011/hello/</link>
      <description>cheap sale&lt;br /&gt;
Welcome to our site: &lt;a href="http://www.voguecatch.com"&gt;http://www.voguecatch.com&lt;/a&gt;  &lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/Linux/409011/409011/hello/</guid>
      <pubDate>Tue, 10 Nov 2009 03:58:22 -0700</pubDate>
      <category>LINUX programming</category>
    </item>
    <item>
      <title>hello</title>
      <link>http://www.programmersheaven.com/mb/Linux/409010/409010/hello/</link>
      <description>cheap sale&lt;br /&gt;
Welcome to our site: &lt;a href="http://www.voguecatch.com"&gt;http://www.voguecatch.com&lt;/a&gt;  &lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/Linux/409010/409010/hello/</guid>
      <pubDate>Tue, 10 Nov 2009 03:56:48 -0700</pubDate>
      <category>LINUX programming</category>
    </item>
    <item>
      <title>My script returns an error when it doesn't like the input</title>
      <link>http://www.programmersheaven.com/mb/Linux/408649/408649/my-script-returns-an-error-when-it-doesnt-like-the-input/</link>
      <description>I have a script which assigns the output of a shell command to a string, for later comparison.&lt;br /&gt;
&lt;br /&gt;
The command typically outputs either "Idle" or&lt;br /&gt;
"Uploading 1 file (102.8 KB/sec, 1 min left)"&lt;br /&gt;
&lt;br /&gt;
I use a test:&lt;br /&gt;
&lt;br /&gt;
while test $status != 'Idle'&lt;br /&gt;
&lt;br /&gt;
However, when the string is not equal to 'Idle' it crashes, possibly because of the unusual characters such as / and ( etc. in the alternative output.&lt;br /&gt;
&lt;br /&gt;
Is it possible to compare or even prepare the string before comparison so that my script doesn't crash? Or is shell scripting limited in this way, in which case I should be using a different language?&lt;br /&gt;
&lt;br /&gt;
Here is the script in case it makes things clearer. It's purpose is to start dropbox, allow it's running while it is performing any action, but exiting if everything is already up to date.&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
#! /bin/sh
dropbox start

status=$(dropbox status)

while test $status != 'Idle'
do
  echo "Working"
  status=$(dropbox status)
done

echo "\nIdle again.. exiting"
dropbox stop&lt;/pre&gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/Linux/408649/408649/my-script-returns-an-error-when-it-doesnt-like-the-input/</guid>
      <pubDate>Sat, 31 Oct 2009 16:24:49 -0700</pubDate>
      <category>LINUX programming</category>
    </item>
    <item>
      <title>(doubt) linux vs windows</title>
      <link>http://www.programmersheaven.com/mb/Linux/408638/408638/doubt-linux-vs-windows/</link>
      <description>how to write code for an application that makes it open source? hope, i am clear with my view.&lt;br /&gt;
&lt;br /&gt;
i mean windows was written in C and its closed whereas linux written in c is open.where is the difference?</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/Linux/408638/408638/doubt-linux-vs-windows/</guid>
      <pubDate>Sat, 31 Oct 2009 12:50:40 -0700</pubDate>
      <category>LINUX programming</category>
    </item>
    <item>
      <title>How to create "post-it" note? Also, use .odt or rtf?</title>
      <link>http://www.programmersheaven.com/mb/Linux/408504/408504/how-to-create-post-it-note-also-use-odt-or-rtf/</link>
      <description>We are designing a cross platform note application for Linux using wxWidgets in C++ or in Python.&lt;br /&gt;
&lt;br /&gt;
But we have a few questions I need to try to find answers for.&lt;br /&gt;
&lt;br /&gt;
1. should we use a RTF format for the notes, or should we try to use the open source format .odt?  Our most important concern is that text formatting is preserved when users cut and paste from OpenOffice, Word, or from Firefox. Any recommendations on how to go about doing this?&lt;br /&gt;
&lt;br /&gt;
2. We want to include a 'Post-It' note feature similar to that used in WORD (in Word they call it "add comment") or in Adobe Acrobat (where it is like a little yellow sticky note) You can click on the document and add a 'comment'. A yellow little box will pop up in which you can type the comment.&lt;br /&gt;
Any suggestions on how to make this? &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/Linux/408504/408504/how-to-create-post-it-note-also-use-odt-or-rtf/</guid>
      <pubDate>Wed, 28 Oct 2009 20:27:45 -0700</pubDate>
      <category>LINUX programming</category>
    </item>
    <item>
      <title>question on use raw socket to a implement HTTP Proxy Server</title>
      <link>http://www.programmersheaven.com/mb/Linux/408353/408353/question-on-use-raw-socket-to-a-implement-http-proxy-server/</link>
      <description>Hi,&lt;br /&gt;
&lt;br /&gt;
I am trying to implement a HTTP proxy server using raw socket.&lt;br /&gt;
&lt;br /&gt;
I create a alias IP address on eth1:0 192.168.0.200 on my linux box&lt;br /&gt;
&lt;br /&gt;
I opened a raw socket as:&lt;br /&gt;
&lt;br /&gt;
fd = socket(AF_INET, SOCK_RAW, IPPROTO_RAW);&lt;br /&gt;
&lt;br /&gt;
and binds to 192.168.0.200 and port 3080&lt;br /&gt;
&lt;br /&gt;
bind(fd, (struct sockaddr *) &amp;amp;addr, sizeof(addr));&lt;br /&gt;
&lt;br /&gt;
However when I use netstat it shows the port as 255 as the following:&lt;br /&gt;
&lt;br /&gt;
raw 0 0 192.168.0.200:255 0.0.0.0:* 7 7469/test-http-proxy&lt;br /&gt;
&lt;br /&gt;
I changed the Firefox connection settings to Manual proxy configuration as:&lt;br /&gt;
&lt;br /&gt;
HTTP Proxy: 192.168.0.200 Port:3080&lt;br /&gt;
&lt;br /&gt;
I got this error from Firefox, and I did not receive any packets from the raw socket.&lt;br /&gt;
&lt;br /&gt;
The browser is configured to use a proxy server, but the proxy refused a connection.&lt;br /&gt;
&lt;br /&gt;
* Is the browser's proxy configuration correct? Check the settings and try again.&lt;br /&gt;
* Does the proxy service allow connections from this network?&lt;br /&gt;
* Still having trouble? Consult your network administrator or Internet provider for assistance.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Any ideas or pointers are appreciated.&lt;br /&gt;
&lt;br /&gt;
yu_zyy &lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/Linux/408353/408353/question-on-use-raw-socket-to-a-implement-http-proxy-server/</guid>
      <pubDate>Mon, 26 Oct 2009 09:20:19 -0700</pubDate>
      <category>LINUX programming</category>
    </item>
    <item>
      <title>BASH:  SED/AWK A Variable</title>
      <link>http://www.programmersheaven.com/mb/Linux/406427/406427/bash--sedawk-a-variable/</link>
      <description>Hi Im wondering how to extract data from a variable.  I have a variable that contains YYYYMMDD, something like 20091013.  Can I extract the year, YYYY, to varA, the month, MM, to varB and the day, DD to vabC?&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/Linux/406427/406427/bash--sedawk-a-variable/</guid>
      <pubDate>Wed, 14 Oct 2009 00:38:32 -0700</pubDate>
      <category>LINUX programming</category>
    </item>
    <item>
      <title>BASH: Script Input Flags</title>
      <link>http://www.programmersheaven.com/mb/Linux/405710/405710/bash-script-input-flags/</link>
      <description>Hi.  Im wondering if there is a way to use flags when starting a script.&lt;br /&gt;
Something like this.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;Script -a -b 10&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Right now Ive got something like this.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
while getopts ab AA
   do case $AA in
       a) var="value"
       ;;
   esac
done          
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
So with that code I can only use flags ( -a -b ).  Can I do the -b 10 so it will store say varB=10?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/Linux/405710/405710/bash-script-input-flags/</guid>
      <pubDate>Mon, 12 Oct 2009 21:11:49 -0700</pubDate>
      <category>LINUX programming</category>
    </item>
    <item>
      <title>Migrating my site from Ubuntu 9.04 to RedHat 5 - directory issues</title>
      <link>http://www.programmersheaven.com/mb/Linux/402270/402270/migrating-my-site-from-ubuntu-904-to-redhat-5---directory-issues/</link>
      <description>Hi All,&lt;br /&gt;
I'm attempting to migrate my website files from server Ubuntu 9.04 to RedHat 5. it's currently hosted in directory&lt;br /&gt;
\var\www\intranet&lt;br /&gt;
&lt;br /&gt;
but in RedHat 5 the root directory is&lt;br /&gt;
\var\www\documents\intranet&lt;br /&gt;
&lt;br /&gt;
I just want to know if avoioding/ignoring the document directory  and placing my intranet folder in the same www directory will cause problems.&lt;br /&gt;
Any assistance appreciated!&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/Linux/402270/402270/migrating-my-site-from-ubuntu-904-to-redhat-5---directory-issues/</guid>
      <pubDate>Tue, 06 Oct 2009 08:32:00 -0700</pubDate>
      <category>LINUX programming</category>
    </item>
    <item>
      <title>Samsung S3C2416 + Android = Embedded Solution</title>
      <link>http://www.programmersheaven.com/mb/Linux/400103/400103/samsung-s3c2416-+-android--embedded-solution/</link>
      <description>Samsung S3C2416 + Android + Embedded Solution &lt;br /&gt;
&lt;br /&gt;
A Cost-effective Solution, applied to industrial control, power, medical, media, communications, security, automotive, financial services, consumer electronics, handheld devices, teaching and other fields for the control panel, terminal, POS, terminal delivery, human-computer interaction interface.&lt;br /&gt;
&lt;br /&gt;
For more information, please visit:&lt;br /&gt;
&lt;a href="http://www.giayee.com/solutions/S3C2416%20Solution.asp"&gt;http://www.giayee.com/solutions/S3C2416%20Solution.asp&lt;/a&gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/Linux/400103/400103/samsung-s3c2416-+-android--embedded-solution/</guid>
      <pubDate>Thu, 24 Sep 2009 20:41:06 -0700</pubDate>
      <category>LINUX programming</category>
    </item>
    <item>
      <title>Marvell PXA310 + Android = Cellular &amp; Handheld Solutions</title>
      <link>http://www.programmersheaven.com/mb/Linux/400102/400102/marvell-pxa310-+-android--cellular--handheld-solutions/</link>
      <description>Marvell PXA310 + Android = Cellular &amp;amp; Handheld Solutions &lt;br /&gt;
&lt;br /&gt;
The PXA310 processor joins the PXA3xx processor family as a cost-effective solution with up to 806 MHz of power-efﬁcient compute performance, hardware video acceleration, and DRM security, enabling the development of cost-efficient smartphones, industrial embedded solutions, and handheld devices.&lt;br /&gt;
&lt;br /&gt;
For more information, please visit:&lt;br /&gt;
&lt;a href="http://www.giayee.com/solutions/PXA310%20Solutions.asp"&gt;http://www.giayee.com/solutions/PXA310%20Solutions.asp&lt;/a&gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/Linux/400102/400102/marvell-pxa310-+-android--cellular--handheld-solutions/</guid>
      <pubDate>Thu, 24 Sep 2009 20:38:21 -0700</pubDate>
      <category>LINUX programming</category>
    </item>
  </channel>
</rss>