unshift @INC, "$root/perl"; # this IS the right way round!
unshift @INC, "$root/local";
+
+# require Exporter;
+# $Exporter::Verbose = 1;
}
use Msg;
use DXVars;
+use DXDebug;
+use DXLog;
use DXUtil;
use DXChannel;
use DXUser;
use DXProt;
use DXMsg;
use DXCluster;
-use DXDebug;
use DXCron;
use DXConnect;
use Prefix;
@inqueue = (); # the main input queue, an array of hashes
$systime = 0; # the time now (in seconds)
-$version = 1.3; # the version no of the software
+$version = 1.4; # the version no of the software
# handle disconnections
sub disconnect
foreach $dxchan (DXChannel->get_all()) {
disconnect($dxchan);
}
+ Log('cluster', "DXSpider V$version stopped");
exit(0);
}
#############################################################
# open the debug file, set various FHs to be unbuffered
-dbginit($debugfn);
foreach (@debug) {
dbgadd($_);
}
STDOUT->autoflush(1);
+Log('cluster', "DXSpider V$version started");
+
# banner
print "DXSpider DX Cluster Version $version\nCopyright (c) 1998 Dirk Koopman G1TLH\n";
$systime = $timenow;
$cldate = &cldate();
$ztime = &ztime();
+ DXCron::process(); # do cron jobs
DXCommandmode::process(); # process ongoing command mode stuff
DXProt::process(); # process ongoing ak1a pcxx stuff
- DXCron::process();
DXConnect::process();
}
}