Ignore:
Timestamp:
01/22/10 19:39:11 (14 years ago)
Author:
nanardon
Message:
  • add --at option to la-warn-expire to specify expiration delay to find
File:
1 edited

Legend:

Unmodified
Added
Removed
  • LATMOS-Accounts/bin/la-warn-expire

    r594 r704  
    2222    'm|mail'     => \my $mail, 
    2323    'help'       => sub { pod2usage(0) }, 
    24     'users|u=s'    => \my @users, 
     24    'users|u=s'  => \my @users, 
    2525    'to=s'       => \my $to, 
     26    'at=s'       => \my $delay, 
    2627) or pod2usage(); 
    2728 
     
    4950Instead sending email to user(s) and eventually his/her/their manager(s), send the mail to 
    5051only this email address. 
     52 
     53=item --at DELAY 
     54 
     55Search account expiring in DELAY. Delay must must a number follow by a time 
     56unit. Example: 
     57 
     58    1 month 
     59    2 days 
    5160 
    5261=back 
     
    8291 
    8392if ($mail) { 
    84     $LA->warn_next_expire_users(to => $to, users => (@users ? \@users : undef)); 
     93    $LA->warn_next_expire_users( 
     94        to => $to, 
     95        users => (@users ? \@users : undef), 
     96        delay => $delay 
     97    ); 
    8598} else { 
    86     foreach ($LA->find_next_expire_users()) { 
     99    foreach ($LA->find_next_expire_users($delay)) { 
    87100        printf("%-10s %s (%s)\n", $_->{delay}, $_->{obj}->get_c_field('displayName'), 
    88101            $_->{obj}->id); 
Note: See TracChangeset for help on using the changeset viewer.