[ABE.pm] IPC:Run FM?

Faber J. Fedor faber at linuxnj.com
Fri Apr 27 10:24:46 PDT 2007


What's the FM needed to get IPC::Run to work/report errors?  My script
is this:

    #!/usr/bin/perl -w
    
    use strict;
    use IPC::Run qw( run start pump finish timeout ) ;
    
    my @ssh = qw( ls );
    my ( $in, $out, $err );
    
    my $h = start \@ssh, \$in, \$out, \$err ; #, timeout( 10 ) ;
    
    $in = '/home/faber/';
    
    pump $h while length $in ; # until $out =~ /ssword:/g ;
    
    warn $err if $err ;
    print $out ;
    
    exit(0);

and whenever I hit the 'pump $h' line, I get a "Command terminated" and
the debugger quits on me. How am I supposed to debug that?



-- 
 
Regards,
 
Faber Fedor
President
Linux New Jersey, Inc.
908-320-0357
800-706-0701

http://www.linuxnj.com





More information about the ABE-pm mailing list