Help for this page

Select Code to Download


  1. or download this
    sub move_logs
    {
         my ($logs, $target_path) = @_;
    ...
    my $logs     = "\\\\192.168.2.5\\Weblogiclogs\\*.log";
    
    move_logs($logs, $log_path);
    
  2. or download this
    foreach my $file (glob($logs))
    {
         move($log, $log_path) || die "screaming";
    }