2 # connect a cluster station
8 return (1, $self->msg('e5')) if $self->priv < 5;
9 return (1, $self->msg('e6')) unless $call gt ' ';
10 return (1, $self->msg('already', $call)) if DXChannel->get($call);
11 return (1, $self->msg('conscript', $lccall)) unless -e "$main::root/connect/$lccall";
13 my $prog = "$main::root/local/client.pl";
14 $prog = "$main::root/perl/client.pl" if ! -e $prog;
19 # in child, unset warnings, disable debugging and general clean up from us
22 eval "{ package DB; sub DB {} }";
24 DXChannel::closeall();
25 $SIG{CHLD} = $SIG{TERM} = $SIG{INT} = $SIG{__WARN__} = 'DEFAULT';
26 exec $prog, $call, 'connect';
28 sleep(1); # do a coordination
29 return(1, $self->msg('constart', $call));
32 return (0, $self->msg('confail', $call, $!))