X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2Fconsole.pl;h=b919d07660cf9ca95d7abf13bee2fb64b8027659;hb=37a9324302cb4de2c25ce0005d697fd9895ea8cd;hp=c47b5076e60f5d995ad1844508e5378c9b89438c;hpb=7e3729a9039462c460dae4804f40c0bd506f3423;p=spider.git diff --git a/perl/console.pl b/perl/console.pl index c47b5076..b919d076 100755 --- a/perl/console.pl +++ b/perl/console.pl @@ -29,12 +29,16 @@ our $foreground; our $background; our $mycallcolor; our @colors; +our $data; +our $local_data; # search local then perl directories BEGIN { # root of directory tree for this system $root = "/spider"; $root = $ENV{'DXSPIDER_ROOT'} if $ENV{'DXSPIDER_ROOT'}; + $local_data = "$root/local_data"; + $data = "$root/data"; unshift @INC, "$root/perl"; # this IS the right way round! unshift @INC, "$root/local"; @@ -76,7 +80,6 @@ our @kh = (); our @sh = (); our $kpos = 0; our $inbuf = ""; -our $lastmin = 0; our $idle = 0; our $inscroll = 0; @@ -503,6 +506,7 @@ sub rec_socket $lasttime = time; } +my $lastmin = 0; sub idle_loop { @@ -589,9 +593,6 @@ doresize(); $SIG{__DIE__} = \&sig_term; -my $lastmin = 0; - - $conn = IntMsg->connect($clusteraddr, $clusterport, rproc => \&rec_socket); $conn->{on_connect} = \&on_connect; $conn->{on_disconnect} = \&on_disconnect;