title: Zip file is not extracting by crontab
body: <p>i am using a perl script for unzipping a zip file by crontab. The script is working properly if i execute it manually. but whenever i set it in cron the script does not work any more. i have tested cron setting other script files are working from cron only this zip extracting script is not working .</p>
  
  <p>Script is as follows :</p>
  
  <pre><code>#!/usr/bin/perl
  use IO::Uncompress::Unzip qw(unzip $UnzipError);
  $dir = '/root/perl';
  open (han2, "ls -l $dir/*.zip |awk '{print \$9}'|");
  @array1 = &lt;han2&gt;;
  chomp(@array1);
  for ($i=0;$i&lt;=$#array1;$i++) {
  
  $zipfile = $array1[$i];
  $u = new IO::Uncompress::Unzip $zipfile
      or die "Cannot open $zipfile: $UnzipError";
  
  die "Zipfile has no members"
      if ! defined $u-&gt;getHeaderInfo;
  
  for ( $status = 1; $status &gt; 0; $status = $u-&gt;nextStream) {
       $name = $u-&gt;getHeaderInfo-&gt;{Name};
      warn "Processing member $name\n" ;
  
      if ($name =~ /\/$/) {
          mkdir $name;
      }
      else {
          unzip $zipfile =&gt; $name, Name =&gt; $name
              or die "unzip failed: $UnzipError\n";
      }
  }
  
  }
  </code></pre>
  
  <p>Crontab setting :</p>
  
  <pre><code>34 14 * * * /root/perl/./unzip.pl &gt; /dev/null 2&gt;&amp;1
  </code></pre>
  
  <p>Please help me to do this task by cronjob</p>