X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fshow%2Frcmd.pl;h=7cd02d5de7022f8738145037e649b1571af6a385;hb=bdb2057b06d14c2cdba899869ba7929f052b2b50;hp=ef45b6c6b3aff3412e8147626995e3843760c665;hpb=c3505bcfc922cd712bad2c20b3479cf8d1dc54fe;p=spider.git diff --git a/cmd/show/rcmd.pl b/cmd/show/rcmd.pl index ef45b6c6..7cd02d5d 100644 --- a/cmd/show/rcmd.pl +++ b/cmd/show/rcmd.pl @@ -27,11 +27,12 @@ while ($f = shift @f) { # next field next if $to; } next if $who; - ($who) = $f =~ /^(\w+)/o; + #($who) = $f =~ /^(\w+)/o; } $to = 20 unless $to; $from = 0 unless $from; -@out = DXLog::print($from, $to, $main::systime, 'rcmd', $who); -return (1, @out); +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])); +