-#!/usr/bin/perl
+#!/usr/bin/env perl
#
# remove all records with the sysop/cluster callsign and recreate
# it from the information contained in DXVars
#
# Copyright (c) 1998 Dirk Koopman G1TLH
#
-# $Id$
+#
#
# make sure that modules are searched in the order local then perl
use DXVars;
use DXUser;
-my $lockfn = "$root/perl/cluster.lck"; # lock file name
+my $lockfn = "$root/local/cluster.lck"; # lock file name
if (-e $lockfn) {
open(CLLOCK, "$lockfn") or die "Can't open Lockfile ($lockfn) $!";
my $pid = <CLLOCK>;
my ($action, $key, $data) = (0,0,0);
for ($action = DXUser::R_FIRST, $count = 0; !$DXUser::dbm->seq($key, $data, $action); $action = DXUser::R_NEXT) {
if ($data =~ m{sort => '[ACRSX]'}) {
- my $user = DXUser->get($key);
+ my $user = DXUser::get($key);
if ($user->is_node) {
$nodes ++;
if (grep $key eq $_, (@nodes, $mycall)) {