X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fsave.pl;h=02835ef721dee95edbe115037d5657462e665baa;hb=d2166e1f70cd2fae131c906c67f1a322472fb5a4;hp=5a3cacdd87a392c12d1fd4001135a88383e179f0;hpb=8486af73ead7e98c81c244cafcdfceabb21f10f7;p=spider.git diff --git a/cmd/save.pl b/cmd/save.pl index 5a3cacdd..02835ef7 100644 --- a/cmd/save.pl +++ b/cmd/save.pl @@ -1,6 +1,8 @@ # # save the output of ANY command to a file # +# From an idea by Rene OZ1LQH +# # Copyright (c) 2002 Dirk Koopman G1TLH # # $Id$ @@ -24,9 +26,11 @@ if ($line =~ /-a/) { # append to the file $app_req = '>>'; } +#$DB::single = 1; + my ($fn, $rest) = split /\s+/, $line, 2; $fn = "$main::root/packclus/$fn" unless $fn =~ m|^/|; -$fn =~ s/..//g; +$fn =~ s/\.\.//g; $fn =~ s|/+|/|g; $fn .= '_' . cldate if $date_req; $fn .= '_' . ztime if $time_req;