1. Added RCMD for clx
[spider.git] / cmd / show / wcy.pl
diff --git a/cmd/show/wcy.pl b/cmd/show/wcy.pl
new file mode 100644 (file)
index 0000000..d549154
--- /dev/null
@@ -0,0 +1,49 @@
+#
+# print out the wcy stats
+#
+# Copyright (c) 2000 - Dirk Koopman G1TLH
+#
+# $Id$
+#
+my $self = shift;
+
+my $cmdline = shift;
+my @f = split /\s+/, $cmdline;
+my $f;
+my @out;
+my ($from, $to); 
+
+$from = 0;
+while ($f = shift @f) {                 # next field
+       #  print "f: $f list: ", join(',', @list), "\n";
+       if (!$from && !$to) {
+               ($from, $to) = $f =~ /^(\d+)-(\d+)$/o;         # is it a from -> to count?
+               next if $from && $to > $from;
+       }
+       if (!$to) {
+               ($to) = $f =~ /^(\d+)$/o;              # is it a to count?
+               next if $to;
+       }
+}
+
+$from = 1 unless $from;
+$to = 10 unless $to;
+
+push @out, "Date        Hour   SFI   A   K Exp.K   R SA    GMF   Aurora   Logger";
+my @in = WCY::search($from, $to, $main::systime);
+for (@in) {
+       push @out, WCY::print_item($_);
+}
+return (1, @out);
+
+
+
+
+
+
+
+
+
+
+
+