Help for this page

Select Code to Download


  1. or download this
    qwurx [shmem] ~> perl -e 'open my $fh,"|-","ssh localhost"; while(<STD
    +IN>){print $fh $_}'
    Pseudo-terminal will not be allocated because stdin is not a terminal.
    ...
    qwurx [shmem] ~> ls -lrt | tail -2 <--- after perl terminated
    -rw-r--r--  1 shmem shmem         0 Mar 15 18:30 blorflydick
    -rw-r--r--  1 shmem shmem         0 Mar 15 18:30 gobbledygook
    
  2. or download this
    my @fh;
    for my $ip (@ips) {
    ...
            print $fh $_;
        }
    }
    
  3. or download this
        open my $fh,"|-","ssh $ip >/dev/null 2>&1" or die "Can't ssh to $i
    +p: $!\n";