Download Firefox: WindowsMac OS X
logo       
Google Custom Search
    AddThis Social Bookmark Button

Re: Another syslog issue: msg#00001

Subject: Re: Another syslog issue
  Minor improvement to handle nested binary files:

sub scan_sources  {
        my ($dir) =@_;

        system( "./unpack-all.sh $dir" );
        ...
        ...
}


  Where unpack-all.sh looks like this:

#!/bin/sh

dir=$1;
echo "Extracting in $dir"

# Order is important to handle .tar.gz files properly
# or .tar.bz2.
find $dir -name '*.gz' -exec gunzip  \{\}  \;
find $dir -name '*.bz2' -exec bunzip2 \{\} \;
find $dir -name '*.tar' -exec tar xf  \{\} \;



Steve
-- 
http://www.debian.org/security/audit


<Prev in Thread] Current Thread [Next in Thread>