Help for this page

Select Code to Download


  1. or download this
    my $spawn = Expect->spawn("ssh $_")
    
  2. or download this
    $ cat et.pl
    #!/usr/bin/env perl 
    use strict;
    ...
    $ perl et.pl 
    Use of uninitialized value $_ in concatenation (.) or string at et.pl 
    +line 6.
    Can't locate object method "spawn" via package "expect" (perhaps you f
    +orgot to load "expect"?) at et.pl line 6.