X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fsave.pl;h=bf24000ea44d96d579089834922d3ec8ef6923bc;hb=eac4538f1f78b3d014539dc548fc6322e8337429;hp=9bb74dddc914ce585c2826483e63e0cec4621545;hpb=9b3374e76b3e39843aed5866d3baeafa54563f6d;p=spider.git diff --git a/cmd/save.pl b/cmd/save.pl index 9bb74ddd..bf24000e 100644 --- a/cmd/save.pl +++ b/cmd/save.pl @@ -1,13 +1,15 @@ # # save the output of ANY command to a file # +# From an idea by Rene OZ1LQH +# # Copyright (c) 2002 Dirk Koopman G1TLH # -# $Id$ +# # my ($self, $line) = @_; -return (1, $self->msg('e5')) if $self->priv < 9 || $self->remotecmd; +return (1, $self->msg('e5')) if $self->priv < 9 || $self->remotecmd || $self->inscript; my ($date_req, $time_req); my $app_req = '>'; @@ -24,7 +26,7 @@ if ($line =~ /-a/) { # append to the file $app_req = '>>'; } -$DB::single = 1; +#$DB::single = 1; my ($fn, $rest) = split /\s+/, $line, 2; $fn = "$main::root/packclus/$fn" unless $fn =~ m|^/|;