X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=perl%2Fconsole.pl;h=7bcb2abde06d7c0675e9aa4ee21fcd783944b3c3;hb=14fa5913c9b5be9f55ef741236aaafbe516f64fe;hp=ea46553f39acce2122c0f103f3a038e9c815f5cf;hpb=16c932699e360cd44811afc68894e55a1a128962;p=spider.git diff --git a/perl/console.pl b/perl/console.pl index ea46553f..7bcb2abd 100755 --- a/perl/console.pl +++ b/perl/console.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl -w +#!/bin/env perl # # this is the operators console. # @@ -14,6 +14,7 @@ # require 5.004; +use warnings; # search local then perl directories BEGIN { @@ -526,7 +527,7 @@ $Text::Wrap::Columns = $cols; my $lastmin = 0; -$conn = IntMsg->connect($clusteraddr, $clusterport, \&rec_socket); +$conn = IntMsg->connect($clusteraddr, $clusterport, rproc => \&rec_socket); $conn->{on_connect} = \&on_connect; $conn->{on_disconnect} = \&on_disconnect;