Re: Perl CGI output truncated
On 28.10.08 23:29, Gerard Sharpe wrote:
> Thanks for the responses.
>
> Achim no luck with stopping buffering with $| = 1;
>
> Matus also tried with no difference:
> ---
> open(RSH,"rsh <router> ping <ip_addr> |") || die "Failed:
> $!\n";
> while ( <RSH> ) {
> print;
> }
>
> #Same result using back ticks, system or exec
> #print `rsh <router> ping <ip_addr>`;
not the die, the print, at least the last one.
die adds newline automatically
--
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Depression is merely anger without enthusiasm.
Reply to: