+14Nov99=======================================================================
+1. added BBS.pm to start BBS input of mail
+2. fixed eval in DXUser to log errors rather than banging out
12Nov99=======================================================================
1. added sh/sun command kindly supplied by Steve K9AN.
2. allow ^Z on its own on a line to terminate a message
eval "{ package DB; sub DB {} }";
alarm(0);
DXChannel::closeall();
+ Msg::close_server();
$SIG{CHLD} = $SIG{TERM} = $SIG{INT} = $SIG{__WARN__} = 'DEFAULT';
exec $prog, $call, 'connect';
} else {
--- /dev/null
+#
+# set any variable
+#
+# Rape me!
+#
+# Copyright (c) 1999 - Dirk Koopman G1TLH
+#
+# $Id$
+#
+
+my ($self, $line) = @_;
+return (1, $self->msg('e5')) if $self->priv < 9 || $self->remotecmd;
+my ($var, $rest) = split /\s+/, $line, 2;
+$rest =~ s/^=\s*//;
+Log('DXCommand', $self->call . " set $var = $rest" );
+eval "$var = $rest";
+return (1, $@ ? $@ : "Ok, $var = $rest" );
+
+
+
+
--- /dev/null
+#
+# show any variable
+#
+# Rape me!
+#
+# Copyright (c) 1999 - Dirk Koopman G1TLH
+#
+# $Id$
+#
+
+my ($self, $line) = @_;
+return (1, $self->msg('e5')) if $self->priv < 9 || $self->remotecmd;
+my @f = split /\s+/, $line;
+my $f;
+my @out;
+
+foreach $f (@f) {
+ print "\$f = $f\n";
+ my $var = eval "$f";
+ if ($var) {
+ my $s = Data::Dumper->Dump([ $var ], [ "$f" ]);
+ push @out, $s;
+ Log('DXCommand', $self->call . " show/var $s");
+ } else {
+ push @out, $@ ? $@ : $self->msg('e3', 'show/var', $f);
+ Log('DXCommand', $self->call . " show/var $f not found" );
+ }
+}
+
+return (1, @out);
$pc11_dup_age = 24*3600; # the maximum time to keep the spot dup list for
$pc23_dup_age = 24*3600; # the maximum time to keep the wwv dup list for
$pc12_dup_age = 12*3600; # the maximum time to keep the ann dup list for
-$pc12_dup_lth = 72; # the length of ANN text to save for deduping
+$pc12_dup_lth = 60; # the length of ANN text to save for deduping
%spotdup = (); # the pc11 and 26 dup hash
%wwvdup = (); # the pc23 and 27 dup hash
%anndup = (); # the PC12 dup hash
use Filter;
use Local;
use DXDb;
+use Data::Dumper;
+
use Fcntl ':flock';
use Carp qw(cluck);