2 # print out the general log file
4 # Copyright (c) 1998 - Dirk Koopman G1TLH
14 my @f = split /\s+/, $cmdline;
17 my ($from, $to, $who, $hint);
20 while ($f = shift @f) { # next field
21 # print "f: $f list: ", join(',', @list), "\n";
22 unless ($from || $to) {
23 ($from, $to) = $f =~ /^(\d+)-(\d+)$/o; # is it a from -> to count?
24 next if $from && $to > $from;
27 ($to) = $f =~ /^(\d+)$/o if !$to; # is it a to count?
37 $from = 0 unless $from;
39 if ($self->priv < 6) {
40 return (1, $self->msg('e5')) if defined $who && $who ne $self->call;
44 @out = $self->spawn_cmd(\&DXLog::print, args => [$from, $to, $main::systime, undef, $who]);
46 # my $fc = Mojo::IOLoop::ForkCall->new;
48 # sub {my @args = @_; my @res = DXLog::print(@args); return @res},
49 # [$from, $to, $main::systime, undef, $who],
50 # sub {my ($fc, $err, @out) = @_; delete $self->{stash}; $self->send(@out);}
52 # #$self->{stash} = $fc;
54 # @out = DXLog::print($from, $to, $main::systime, undef, $who);