|
Lines 304-310
Link Here
|
| 304 |
# Get the list of user on netplan server |
304 |
# Get the list of user on netplan server |
| 305 |
#-------------------------------------------------------------------------- |
305 |
#-------------------------------------------------------------------------- |
| 306 |
sub get_group { |
306 |
sub get_group { |
| 307 |
open(IN,"/usr/local/bin/plan -W localhost -F | sort |"); |
307 |
open(IN,"/usr/bin/plan -W localhost -F | sort |"); |
| 308 |
@PlanUsers=<IN>; |
308 |
@PlanUsers=<IN>; |
| 309 |
close(IN); |
309 |
close(IN); |
| 310 |
|
310 |
|
|
Lines 327-335
Link Here
|
| 327 |
$da=&firstdom($mo,$yr); |
327 |
$da=&firstdom($mo,$yr); |
| 328 |
|
328 |
|
| 329 |
if ( $jj eq 0 ) { |
329 |
if ( $jj eq 0 ) { |
| 330 |
open ( IN , "/usr/local/bin/plan -W $Who -i -t 1\.$mo\.$yr $days[$mo] |" ); |
330 |
open ( IN , "/usr/bin/plan -W $Who -i -t 1\.$mo\.$yr $days[$mo] |" ); |
| 331 |
} else { |
331 |
} else { |
| 332 |
open ( IN , "/usr/local/bin/plan -W $Who -i -t $jj\.$mo\.$yr 1 |" ); |
332 |
open ( IN , "/usr/bin/plan -W $Who -i -t $jj\.$mo\.$yr 1 |" ); |
| 333 |
} |
333 |
} |
| 334 |
@PlanData=<IN>; |
334 |
@PlanData=<IN>; |
| 335 |
close(IN); |
335 |
close(IN); |
|
Lines 341-347
Link Here
|
| 341 |
#-------------------------------------------------------------------------- |
341 |
#-------------------------------------------------------------------------- |
| 342 |
sub obtain_user { |
342 |
sub obtain_user { |
| 343 |
local(@PlanData); |
343 |
local(@PlanData); |
| 344 |
open ( IN , "/usr/local/bin/plan -W -F | sort | " ); |
344 |
open ( IN , "/usr/bin/plan -W -F | sort | " ); |
| 345 |
@PlanData=<IN>; |
345 |
@PlanData=<IN>; |
| 346 |
close(IN); |
346 |
close(IN); |
| 347 |
|
347 |
|
|
Lines 369-375
Link Here
|
| 369 |
sub get_holiday { |
369 |
sub get_holiday { |
| 370 |
local ($yr) = @_; |
370 |
local ($yr) = @_; |
| 371 |
|
371 |
|
| 372 |
open ( IN , "/usr/local/bin/plan -W -H $yr |" ); |
372 |
open ( IN , "/usr/bin/plan -W -H $yr |" ); |
| 373 |
@PlanHoliday=<IN>; |
373 |
@PlanHoliday=<IN>; |
| 374 |
close(IN); |
374 |
close(IN); |
| 375 |
|
375 |
|