2 # print out the general log file for rcmds only
4 # Copyright (c) 1998 - Dirk Koopman G1TLH
10 return (1, $self->msg('e5')) if $self->priv < 9;
13 my @f = split /\s+/, $cmdline;
16 my ($from, $to, $who);
19 while ($f = shift @f) { # next field
20 # print "f: $f list: ", join(',', @list), "\n";
22 ($from, $to) = $f =~ /^(\d+)-(\d+)$/o; # is it a from -> to count?
23 next if $from && $to > $from;
26 ($to) = $f =~ /^(\d+)$/o if !$to; # is it a to count?
36 $from = 0 unless $from;
38 return (1, DXLog::print($from, $to, $main::systime, 'rcmd', $who)) if $self->{_nospawn};
39 return (1, $self->spawn_cmd("show/rcmd $cmdline", \&DXLog::print, args => [$from, $to, $main::systime, 'rcmd', $who]));