in reply to Get output after running IPC::Run

That makes no sense. run doesn't care at all about line endings.
use strict; use warnings; use IPC::Run qw( run ); my @cmd = ( perl => ( -e => 'print "x" x 100_000', ) ); run \@cmd, \'', \my $out, \my $err or die("Error returned by $cmd[0]: $?\n"); print("Receveived ", length($out), " chars\n");
$ perl a.pl Receveived 100000 chars

What don't you start by doing some error checking? What does run return? What does $? contain after run? Are you getting an exception from run or from the timeout?

Replies are listed 'Best First'.
Re^2: Get output after running IPC::Run
by pid (Monk) on Nov 24, 2009 at 03:34 UTC

    You are right...
    Everybody who still keeps an eye on this problem, please take a glance at update 2.
    Greatly thank you all for helping.