X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fspawncmd.pl;fp=cmd%2Fspawncmd.pl;h=829c52957f5acab89689bf31122f9ee42a11f1ac;hb=250609cfa6bd2cb43122c67ff8fbb8802ccc61f6;hp=0000000000000000000000000000000000000000;hpb=fda536aef281e0f6fc68a02c537d18650bd5505f;p=spider.git diff --git a/cmd/spawncmd.pl b/cmd/spawncmd.pl new file mode 100644 index 00000000..829c5295 --- /dev/null +++ b/cmd/spawncmd.pl @@ -0,0 +1,13 @@ +# spawn a command +# +# Note: this command will run _nospawn versions of a cmd (as this is a direct lift from +# the 'spawn_cmd' in DXCron pm +# + +sub handle +{ + my ($self, $line) = @_; + return (1, $self->msg('e5')) if $self->priv < 6; + my @out = DXCron::spawn_cmd($line, $self) unless $self->{_nospawn}; + return (1, @out); +}