Add a ring buffer to debugging + other things
[spider.git] / cmd / export_users.pl
index 4c143ebbf43c80776bff8e65e616513f64f52057..5555512e88c59ef13ba496ee35695ba49ff897f6 100644 (file)
@@ -1,9 +1,17 @@
 #
 # the export the user file to ascii command
 #
-# $Id$
+#
 #
 my $self = shift;
+my $line = shift;;
 return (1, $self->msg('e5')) unless $self->priv >= 9;
-my $line = shift || "$main::data/user_asc";
-return (1, DXUser::export($line));
+
+my ($fn, $flag) = split /\s+/, $line;
+my $strip = $flag eq 'strip';
+
+my @out = $self->spawn_cmd("export_users", \&DXUser::export, args => [$fn, $strip]);
+
+return (1, @out);
+
+