ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Coro/myhttpd/shell.pl
(Generate patch)

Comparing Coro/myhttpd/shell.pl (file contents):
Revision 1.19 by root, Fri Sep 28 13:54:21 2001 UTC vs.
Revision 1.20 by root, Wed Nov 28 03:39:46 2001 UTC

9use Text::Abbrev; 9use Text::Abbrev;
10 10
11my $last_ts = time; 11my $last_ts = time;
12 12
13my %complete; 13my %complete;
14my @commands = qw(quit squit refresh country restart block info print); 14my @commands = qw(quit squit refresh country restart block info print clrdiridx);
15 15
16abbrev \%complete, @commands; 16abbrev \%complete, @commands;
17 17
18sub shell { 18sub shell {
19 my $fh = shift; 19 my $fh = shift;
54 do "config.pl"; 54 do "config.pl";
55 print $fh "config.pl: $@\n" if $@; 55 print $fh "config.pl: $@\n" if $@;
56 %statdata_cache = (); 56 %statdata_cache = ();
57 conn::read_blockuri; 57 conn::read_blockuri;
58 conn::read_blockref; 58 conn::read_blockref;
59 } elsif ($cmd eq "clrdiridx") {
60 %statdata_cache = ();
61 %diridx = ();
59 } elsif ($cmd eq "restart") { 62 } elsif ($cmd eq "restart") {
60 $::RESTART = 1; 63 $::RESTART = 1;
61 unloop; 64 unloop;
62 print $fh "restarting, cu!\n"; 65 print $fh "restarting, cu!\n";
63 last; 66 last;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines