Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: logrotate

by CharlesClarkson (Curate)
on Nov 12, 2001 at 20:54 UTC ( [id://124855]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    foreach (@config) {
            next unless /^(\b)\s+(\b)\s+(\b)/;
            my $file = $1;
            my $versions = $2;
            my $pidfile = $3;
    
  2. or download this
         Gzip  => 'lib',
         Post   => sub{
    ...
         kill("HUP", $appid); },
         Dir    => '/var/log/old',
         Flock  => 'yes',
    
  3. or download this
         File   => $file,
         Count  => $versions,
    ...
                   },
         Dir    => '/var/log/old',
         Flock  => 'yes',
    
  4. or download this
            if (defined $log) { print "Looks ok..\n";
            } else {
    ...
            $log->rotate();
            undef $log;
    }
    
  5. or download this
        defined $log or die "An error accured processing config data\n";
        print "Looks ok..\n";
        $log->rotate();
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://124855]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2024-12-09 10:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which IDE have you been most impressed by?













    Results (53 votes). Check out past polls.