Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
    $ssh->expect(60, '$');
    $ssh->send("exit\n");
    $ssh->close();
    
  2. or download this
    my $ssh = Expect->new('ssh tilrman@localhost;');