Help for this page

Select Code to Download


  1. or download this
    use Expect;
    
    ...
    my $cmd = Expect->spawn('/usr/bin/sshfs', 'root@moto:/mnt/sdcard/eBook
    +s', 'mnt') or die $!;
    $cmd->expect(undef,  'root@moto\'s password: ');
    $cmd->send("XXXX\n");
    
  2. or download this
    Spawned '/usr/bin/sshfs root@moto:/mnt/sdcard/eBooks mnt'
        spawn id(3)
    ...
    Sending 'XXXX\n' to spawn id(3)
     at /home/mh/perl5/perlbrew/perls/perl-5.18.1/lib/site_perl/5.18.1/Exp
    +ect.pm line 1264.
        Expect::print('Expect=GLOB(0xfe0ab8)', 'XXXX\x{a}') called at ./mn
    +t.pl line 13