X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2Fupdate_sysop.pl;h=f76dc7257faa71d9c10b89f380e4a7e51c8d2920;hb=4b49fe47b37249d748f0a52fe2a778d4bc27232f;hp=2fccbb5aee90c8aa2f46fa5c5412b933150b187d;hpb=ab811a0c902225075a9bd69749f65594079433a9;p=spider.git diff --git a/perl/update_sysop.pl b/perl/update_sysop.pl index 2fccbb5a..f76dc725 100755 --- a/perl/update_sysop.pl +++ b/perl/update_sysop.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # # remove all records with the sysop/cluster callsign and recreate # it from the information contained in DXVars @@ -83,6 +83,8 @@ sub create_it } +die "\$myalias \& \$mycall are the same ($mycall)!, they must be different (hint: make \$mycall = '${mycall}-2';).\n" if $mycall eq $myalias; + $lockfn = "$root/local/cluster.lck"; # lock file name if (-e $lockfn) { open(CLLOCK, "$lockfn") or die "Can't open Lockfile ($lockfn) $!";