version 1.88, 2011/04/23 16:18:49
|
version 1.89, 2011/05/14 16:12:53
|
Line 32 use strict;
|
Line 32 use strict;
|
|
|
use lib '/home/httpd/lib/perl/'; |
use lib '/home/httpd/lib/perl/'; |
use LONCAPA::Configuration; |
use LONCAPA::Configuration; |
|
use LONCAPA; |
use Apache::lonnet; |
use Apache::lonnet; |
use Apache::loncommon; |
use Apache::loncommon; |
|
|
Line 821 sub main () {
|
Line 822 sub main () {
|
print $fh "$key\n"; |
print $fh "$key\n"; |
} |
} |
close($fh); |
close($fh); |
my $execpath = $perlvar{'lonDaemons'}.'/lciptables'; |
if (&LONCAPA::try_to_lock('/tmp/lock_lciptables')) { |
system("$execpath $tmpfile"); |
my $execpath = $perlvar{'lonDaemons'}.'/lciptables'; |
|
system("$execpath $tmpfile"); |
|
unlink('/tmp/lock_lciptables'); # Remove the lock file. |
|
} |
unlink($tmpfile); |
unlink($tmpfile); |
} |
} |
} |
} |