in reply to Re: File Search
in thread File Search
This is teh error being returned - "A file or directory in the path name does not exist. sh: error: 0403-016 Cannot find or open the file." Any help is greatly appreciated.use File::Find; find(\&wanted, '/opt/psoft/hr83tst/appserv/prcs/HRTST/log_output/'); print $_ ; sub wanted { return unless /\.out$/; open F, $_ or return ; while (defined (my $line = <F>)) { if (-M $_ < 0.5) { print $_ if $line =~ /error/ ; system("mail -s' $_' mikev\@beverlycorp.com<$line"); return; } } close F; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: File Search
by Aragorn (Curate) on Oct 27, 2003 at 19:35 UTC | |
by mikevanhoff (Acolyte) on Oct 27, 2003 at 20:48 UTC |