Help for this page

Select Code to Download


  1. or download this
    # $ssh_sr contains the remote host like user@host
    open my $def_in, '<', '/dev/null';
    $self->{ssh} = Net::OpenSSH->new($ssh_sr, default_stdin_fh => $def_in)
    +;
    
  2. or download this
    # @cmd contains the traceping command to launch remotely via the exist
    +ing SSH connexion.
    my $killed;
    ...
    waitpid $pid, 0;
    close $f_stdout;
    close $f_stderr;