5. Only wonder down the msg queue every minute
[spider.git] / cmd / dbavail.pl
diff --git a/cmd/dbavail.pl b/cmd/dbavail.pl
new file mode 100644 (file)
index 0000000..9d89851
--- /dev/null
@@ -0,0 +1,16 @@
+#!/usr/bin/perl
+#
+# Database update routine
+#
+# Copyright (c) 1999 Dirk Koopman G1TLH
+#
+my ($self, $line) = @_;
+my @out;
+
+my $f;
+
+foreach $f (values %DXDb::avail) {
+       push @out, "DB Name          Location" unless @out;
+       push @out, sprintf "%-15s  %-s", $f->name, $f->remote ? $f->remote : "Local"; 
+}
+return (1, @out);