RE: serching system for certain file sizes then e-mail.

2001-05-16 Thread Peter Cornelius
>I am trying to writ a script that would search a system for certain file >sizes and if so e-mail me. check out File::Find on cpan. You can do something like... use File::Find; sub checkSize { push @files, $_ if (-s == $specialSize); } find (\&checkSize, @dirs); if (defined @files

serching system for certain file sizes then e-mail.

2001-05-16 Thread Chris Bourne
I am trying to writ a script that would search a system for certain file sizes and if so e-mail me. Something like this. Thanks [EMAIL PROTECTED] #!/usr/bin/perl -w if { qx(find \ -size +1c -print > /root/big_files | e-mail me) else