Help for this page

Select Code to Download


  1. or download this
    Use Net:SSH2;
    <snip>
    ...
        $ssh2->scp_get($remote, $local);
        alarm (0);
    };
    
  2. or download this
    eval {
        local $SIG{ALRM} = sub { die "alarm\n"; };
    ...
        alarm (0);
    };
    print "Timed out.\n" if ($@);