title: Perl processes disappears after some days
body: <p>I have a perl file (<strong>test.pl</strong>).</p>
  
  <p>It will work in recurring manner.
  The purpose of the file is send emails from DB</p>
  
  <p>Following is the code in test.pl</p>
  
  <pre><code>sub send_mail{
  
  $db-&gt;connect();
  
  # Some DB operations #
  # Send mail #
  
  $db-&gt;disconnect();
  sleep(5);
  
  send_mail();
  
  }
  
  send_mail();
  </code></pre>
  
  <p>Iam executing 5 instance of this file ,like as below</p>
  
  <pre><code>perl test.pl  &gt;&gt; /var/www/html/emailerrorlog/error1.log 2&gt;&amp;1 &amp;
  perl test.pl  &gt;&gt; /var/www/html/emailerrorlog/error2.log 2&gt;&amp;1 &amp;
  perl test.pl  &gt;&gt; /var/www/html/emailerrorlog/error3.log 2&gt;&amp;1 &amp;
  perl test.pl  &gt;&gt; /var/www/html/emailerrorlog/error4.log 2&gt;&amp;1 &amp;
  perl test.pl  &gt;&gt; /var/www/html/emailerrorlog/error5.log 2&gt;&amp;1 &amp;
  </code></pre>
  
  <p>if i execute the command  <code>ps -ef | grep perl | grep -v grep</code></p>
  
  <p>I can see  5 instances of above mentioned perl file </p>
  
  <p>That file  will work perfectly for some days</p>
  
  <p>But after some days, the perl processes  will start  to disappear one by one .</p>
  
  <p>After some days all process will disappear.
  Now. if i execute the command ps -ef | grep perl | grep -v grep ,I can't see any process,</p>
  
  <p>I can't  see any error log  in the log files.</p>
  
  <p>So, what may be the chances for disappearing the perl processes?</p>
  
  <p>How can i debugg it ?</p>
  
  <p>Where can i see the perl error log?</p>
  
  <p>It has the same issue in Centos and Red Hat Linux</p>
  
  <p>Any one have idea?</p>