Help for this page

Select Code to Download


  1. or download this
    # initialize an Expect object:
    my $conn = Expect->new;
    ...
    
    # SSH echoes the "\n" after the password, remove it from the stream:
    $conn->expect($timeout, "\n");