add set and unset/agwmonitoring
[spider.git] / cmd / set / agwmonitor.pl
diff --git a/cmd/set/agwmonitor.pl b/cmd/set/agwmonitor.pl
new file mode 100644 (file)
index 0000000..6de8199
--- /dev/null
@@ -0,0 +1,17 @@
+#
+# set AGW engine monitoring
+#
+# $Id$
+#
+
+my $self = shift;
+return (1, $self->msg('e5')) if $self->priv < 9;
+if ($AGWMsg::monitor == 0) {
+       AGWMsg::_sendf('m');
+       $AGWMsg::monitor = 1;
+       return (1, $self->msg('mone'));
+}
+return (1);
+
+
+