Changeset 704 for LATMOS-Accounts/bin/la-warn-expire
- Timestamp:
- 01/22/10 19:39:11 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LATMOS-Accounts/bin/la-warn-expire
r594 r704 22 22 'm|mail' => \my $mail, 23 23 'help' => sub { pod2usage(0) }, 24 'users|u=s' 24 'users|u=s' => \my @users, 25 25 'to=s' => \my $to, 26 'at=s' => \my $delay, 26 27 ) or pod2usage(); 27 28 … … 49 50 Instead sending email to user(s) and eventually his/her/their manager(s), send the mail to 50 51 only this email address. 52 53 =item --at DELAY 54 55 Search account expiring in DELAY. Delay must must a number follow by a time 56 unit. Example: 57 58 1 month 59 2 days 51 60 52 61 =back … … 82 91 83 92 if ($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 ); 85 98 } else { 86 foreach ($LA->find_next_expire_users( )) {99 foreach ($LA->find_next_expire_users($delay)) { 87 100 printf("%-10s %s (%s)\n", $_->{delay}, $_->{obj}->get_c_field('displayName'), 88 101 $_->{obj}->id);
Note: See TracChangeset
for help on using the changeset viewer.