in reply to Re: Setting up 2 way pipe for a command
in thread Setting up 2 way pipe for a command
In one of my iterations I avoided the premature end message however, the script simply quits on the first call of 'pump'. No error message, nothing. Does anyone one see anything obvious? Thanks.my $h=start(\@cmd,\$in,\$out,\$err); while (!eof(FILELIST)) { $thisline=readline(FILELIST); ($thisfile,$thisfilesize)=split(/\t/,$thisline +); $in="$thisfile\n"; $h->pump; while ($h->pumpable) { $h->pump; } if (length($out)>0) { putmsg($out); } $total+=$thisfilesize; $complete=sprintf("%.2f",$total/$dumpsize); putmsg("$complete%\n"); } finish $h;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Setting up 2 way pipe for a command
by gloryhack (Deacon) on Jul 03, 2008 at 00:48 UTC | |
by gw1500se (Beadle) on Jul 03, 2008 at 23:19 UTC |