X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fshow%2Frcmd.pl;h=0a362075ce0005e17e549bee2d7b98c3db81eeef;hb=62a87def961821679e455f333a58bc8c357e0457;hp=64b64798ae0a6debafed70ad16e0b37784df88c4;hpb=201dedf3e4325faab5c34b38135790012142286b;p=spider.git diff --git a/cmd/show/rcmd.pl b/cmd/show/rcmd.pl index 64b64798..0a362075 100644 --- a/cmd/show/rcmd.pl +++ b/cmd/show/rcmd.pl @@ -27,13 +27,14 @@ while ($f = shift @f) { # next field next if $to; } next if $who; - ($who) = $f =~ /^(\w+)/o; + if ($f !~ /^\d+/) { + ($who) = $f; + } } $to = 20 unless $to; $from = 0 unless $from; -@out = $self->spawn_cmd("show/rcmd $cmdline", \&DXLog::print, args => [$from, $to, $main::systime, 'rcmd', $who]); +return (1, DXLog::print($from, $to, $main::systime, 'rcmd', $who)) if $self->{_nospawn}; +return (1, $self->spawn_cmd("show/rcmd $cmdline", \&DXLog::print, args => [$from, $to, $main::systime, 'rcmd', $who])); -#@out = DXLog::print($from, $to, $main::systime, 'rcmd', $who); -return (1, @out);